How to? shortcuts and batch files

Oct 18, 2008
339
2
As it turns out, after I installed take command, I probably ran the btm file tccbatch.btm or tcmdbatch.btm and probably replied “yes” to have take/tcc execute *.bat, *.cmd and *.btm files. I don’t know if it is “best practice” when creating a “shortcut” (file) to specify as the “target” a “bat” file or precede the bat file with cmd.exe /c

As it turns out the shortcut that the (new) google drive creates does just that, and take/tcc seems to have an issue executing that batch file.

Is there a way to revert the value of “batfile” (and cmdfile) (via ftype command) to the default value before tccbatch.btm or tcmdbatch.btm executed? Thanks
 

samintz

Scott Mintz
May 20, 2008
1,503
16
Solon, OH, USA
The tccbatch.btm file that is distributed with TCC/TakeCommand has the option to make CMD the default handler of BAT and CMD files.
If your run tccbatch /U it will ask if you want to do that.
 
Oct 18, 2008
339
2
thanks for your reply --- I must have an old version of tccbatch --- is a current version available to download?
 

samintz

Scott Mintz
May 20, 2008
1,503
16
Solon, OH, USA
What version are you running? These commands will restore defaults:
Code:
ftype batfile="c:\windows\system32\cmd.exe" /c "%%1" %%*
ftype cmdfile="c:\windows\system32\cmd.exe" /c "%%1" %%*
 
Oct 18, 2008
339
2
thanks for the info --- I am running the free tccle -- I thjink the last version was 14 and tcmd v19
 
Similar threads
Thread starter Title Forum Replies Date
MikeBaas Edit/remove kbd shortcuts of Macro Recorder? Support 7
R Changes to BDEBUGGER menu item keyboard shortcuts in v25 Support 2
J How to? Debug Keyboard Shortcuts (Ctrl-A not remapping?) Support 8
I v16 - Shortcuts not working Support 6
CWBillow Variables in shortcuts? Support 15
S Inexplicable behavior difference in nearly identical shortcuts Support 6
J Problems with shortcuts Support 2
M "Shortcut key" on Windows start menu shortcuts Support 5
vefatica `Back quotes` - command line vs. batch file Support 5
fpefpe How to? batch file size Support 2
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
P Kill all other instances of tcc from a btm batch file Support 2
fpefpe batch file ending early Support 18
R Batch Debugger Command Expansion Window Support 3
K robocopy cancelling batch file processing Support 28
A Unable to pass batch file arguments unaltered Support 18
K Batch debugger not stepping correctly Support 4
S incorrect message at start Cancel batch job 4START.bat ? (Y/N/A) : Support 1
MickeyF Why does this batch file give me 'unknown command "else"' error? Support 17
Joe Caverly "Functions" in cmd.exe batch files Support 6
S Batch files Calling Batch Files Support 2
P exit /b in batch files Support 7
P Labels in batch files: TCC vs CMD.exe Support 9
vefatica Batch parameters broken? Support 2
cxxl Set encoding for batch file Support 4
dcantor How to? Batch file to be executed by TCSTART Support 4
J New lexer for TCC batch files. Support 0
T Fixed Problem with use of Batch parameters in the IDE Support 1
T Fixed IDE locks up if edit window for running batch is closed Support 6
T How to? Show the values of batch variables on the TCC screen Support 21
D Alias in batch file Support 3
TT's Help! Uninstalling TCC did not restore cmd.exe as Win10 default batch file processor. Support 4
vefatica Exit code of a batch file? Support 4
J cd command altered in batch file Support 3
MickeyF running a program from cmdline versus in batch file Support 1
B Batch file won't run if there is already an instance of TC 17 running Support 9
nickles Fixed Executing long command lines in a batch generates file name errors Support 16
T batch execution Support 9
rjperrella start /tabna leaves blank windows when running batch scripts Support 10
jadaml Echo unicode characters from UTF-8 Batch files? Support 1
J Files Disappearing During Batch Execution Support 4
nickles Fixed In batch files, %0 now evaluates to the absolute path Support 9
D Installation batch files Support 5
Jay Sage WAD Possible Bug in Batch Parameters Support 7
C How to? run a batch file in administrator mode while debugging in take command software Support 1
R Unexpected 'Cancel Batch Job' prompts Support 13
cgunhouse Fixed bdebugger with not exist batch file causes a crash Support 2
Mezlo menu batch file questions Support 25

Similar threads