Help! Uninstalling TCC did not restore cmd.exe as Win10 default batch file processor.

Aug 10, 2016
3
0
How do I restore cmd.exe as the default program for .bat files?

My TCC trial expired, so I uninstalled it. However, I am unable to run batch files on Win10 x64 because Windows lost it's association with a batch file command processor (default cmd.exe).

Apparently, you can't just associate a file type .bat with cmd.exe. There seems to be a number of registry entries that control cmd.exe and associate .bat files to that executable. I discovered this problem by trying to install software that used a batch file as part of it's installation routine...

cmd.exe not working on .bat files.jpg


How do I restore cmd.exe as the default program for .bat files?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,423
85
Albuquerque, NM
prospero.unm.edu
I posted a batch a few weeks back to reset the .BAT and .CMD to their defaults. But unfortunately, it's a Take Command batch file, and you've uninstalled Take Command....

I think this should work in an elevated CMD.EXE:
Code:
assoc .bat=batfile
assoc .cmd=cmdfile
ftype batfile="%1" %*
ftype cmdfile="%1" %*

Possibly only the first line, or the first two lines, is all you really need.
 
Aug 10, 2016
3
0
I posted a batch a few weeks back to reset the .BAT and .CMD to their defaults. But unfortunately, it's a Take Command batch file, and you've uninstalled Take Command....

I think this should work in an elevated CMD.EXE:
Code:
assoc .bat=batfile
assoc .cmd=cmdfile
ftype batfile="%1" %*
ftype cmdfile="%1" %*

Possibly only the first line, or the first two lines, is all you really need.

I reinstalled TCC and ran all 4 lines. No go. It didn't work
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,423
85
Albuquerque, NM
prospero.unm.edu
I reinstalled TCC and ran all 4 lines. No go. It didn't work

The lines I posted above were intended for an elevated CMD.EXE. If you want to use TCC, double the percent signs (and TCC must be elevated, too.)

Would it make sense to post, or make available for download somehow, a .REG file?
 
Aug 10, 2016
3
0
SOLVED

Hey Charles,

Thanks for the script. It DID work. I thought I had followed the steps you specified at first. But apparently I missed something because I gave it one more go today and my cmd.exe is restored and working.

I ran an elevated cmd.exe (as administrator) and entered each of the four lines of the script you provided one by one. Viola! Everything is back as it was.

Thanks!

Jim
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Online help? Support 2
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
JohnQSmith New online help file wrong logo Support 7
Jay Sage Documentation Function @DRIVE Missing in Help Lists Support 0
Charles Dye More help nits Support 0
D Documentation Typo in COPY help Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
Joe Caverly Documentation COMMANDS in Version 27 help Support 8
K_Meinhard How to? Help window position Support 7
U Command help on file names Support 5
D Documentation Help "Startup" page does not describe global lists Support 0
vefatica Help disappears? Support 6
rchapmanitt Help Purchasing Support 2
Charles Dye Documentation Help nits: @ZIPFILECRC Support 0
C version help Support 3
C Documentation Help Nit. REN / RENAME Support 0
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
vefatica Help for @PID Support 2
vefatica Need help with XML Support 3
Alpengreis Documentation Minor issue in help file for view /E Support 1
R Documentation Advanced Directives Help Support 0
R Documentation Help Nit with SETP Support 0
R wmic command help Support 9
R Documentation Help Nit > bdebugger View Menu Support 0
R Documentation A couple of Help nits Support 0
R Documentation Help typo Support 1
MikeBaas How to? I need help with RD Support 5
R Documentation v25 Help Comments Support 1
Joe Caverly DIRectory Colorization in v25 Help File Support 0
vefatica Help nit Support 0
D error in help documentation? Support 0
Joe Caverly _EXPANSION in help file Support 0
K_Meinhard Help file error Support 1
Joe Caverly JOBMONITOR in Help File Support 1
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
D The local HELP viewer... Support 0
Chen Touboul Overtyping issue - i press the Insert key, help till press enter for new line in TCC Support 2
C Documentation Help nix ZIP /M Support 0
Joe Caverly v24 Help File - DATEMONITOR Support 1
Joe Caverly 7zip command links to zip help Support 0
K_Meinhard Help problems Support 3
Charles Dye Documentation Help Nits Forever: Checksum functions Support 0
Joe Caverly SAVECONSOLE in Help File Support 0
Joe Caverly CMDebug v23 Help: /FEEDBACK /UPDATE Support 0
Joe Caverly CMDebug v23 Help: Link to MOUNTVHD goes to MOUNTISO in UNMOUNTVHD Support 0
Joe Caverly Help not launching in CMDebug v23.00.14 x64 Support 1
Joe Caverly TASKDIALOG Help link error Support 1
C Help Nit Support 0
J Need activation help. Support 1
Joe Caverly Documentation SETP correction in help file Support 0

Similar threads