Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I change the default cmd (%SystemRoot%\system32\cmd.exe) to tcc.exe (C:\Program Files\JPSoft\TCCLE13\tcc.exe).

I have changed the value of Environment Variables -> ComSpec, But it still doesn't work. I think it should be changed somewhere in regedit. But I cannot find the location.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

This does working in XP on the command line:

reg add "hklm\system\currentcontrolset\control\session manager\environment" /f /v comspec /t REG_SZ /d "C:\Program Files\JPSoft\TCCLE13\tcc.exe"

To restore the cmd.exe type:

reg add "hklm\system\currentcontrolset\control\session manager\environment" /f /v comspec /t REG_EXPAND_SZ /d ^%SystemRoot^%\system32\cmd.exe

Edit: Restart the computer after changing the value.

share|improve this answer
    
Being HKLM, surely this affects all users and not just the current user account? (Unlike setting COMSPEC would, in an ideal world.) That's worth noting specifically. –  Michael Kjörling Mar 27 '13 at 15:33
    
I have only one user in my system. Please try it on a multiuser system and report the result here. –  Endoro Mar 27 '13 at 15:40
    
I don't have easy access to a WinXP system, and certainly am not going to install one just to try this... –  Michael Kjörling Mar 27 '13 at 20:07
    
Thanks, I would have a try. –  Marslo Apr 25 '13 at 6:44
1  
Thank you again.@Endoro –  Marslo Apr 26 '13 at 5:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.