Windows 8 and 8.1 Forums


Environmental Variable ComSpec

  1. #1


    Posts : 20
    windowws 8.1

    Environmental Variable ComSpec


    What should be in the Environmental Variable ComSpec windows 4.1?

    I erased mine by mistake.

    What I've read I'm going to try C:\system32\cmd.exe.

    But If it's wrong my computer won't restart.

    Is this path correct?

    Don Cole

      My System SpecsSystem Spec

  2. #2


    Posts : 2,130
    Windows 8.0 x64


    If Windows is installed in C:\Windows then it should be
    C:\windows\system32\cmd.exe
      My System SpecsSystem Spec

  3. #3


    N. Calif
    Posts : 2,595
    W10 Pro (desktop), W10 (laptop), W10 Pro (tablet), W10 (laptop)


    The COMSPEC environment variable can be used to specify where command.com (DOS) or cmd.exe (OS/2, Windows) can be found. It could also be used to specify that a different command interpreter than cmd.exe be used.

    Back in the floppy only DOS days, it was common to create a RAM disk and copy command.com to it. As you inserted and removed floppy disks while working, DOS would need to reload command.com and, if command.com wasn't found on any disk currently in the machine you would be prompted to insert a disk containing command.com. Having command.com on a RAM disk and specifying that it could be found there via the COMSPEC environment variable, meant that you never needed to re-insert a disk containing command.com because it could be loaded from the RAM disk. It was a great time saver in those days.
      My System SpecsSystem Spec

  4. #4


    Posts : 2,130
    Windows 8.0 x64


    Quote Originally Posted by strollin View Post
    The COMSPEC environment variable can be used to specify where command.com (DOS) or cmd.exe (OS/2, Windows) can be found. It could also be used to specify that a different command interpreter than cmd.exe be used.

    Back in the floppy only DOS days, it was common to create a RAM disk and copy command.com to it. As you inserted and removed floppy disks while working, DOS would need to reload command.com and, if command.com wasn't found on any disk currently in the machine you would be prompted to insert a disk containing command.com. Having command.com on a RAM disk and specifying that it could be found there via the COMSPEC environment variable, meant that you never needed to re-insert a disk containing command.com because it could be loaded from the RAM disk. It was a great time saver in those days.
    As example of the first use my cmd prompt replacement shows comspec as
    C:\Program Files\JPSoft\TCCLE13x64\TCC.EXE

      My System SpecsSystem Spec

Environmental Variable ComSpec
Related Threads
Hi, I was doing a clean-up and accidentally deleted all the environment variable paths. Can someone please give me a step-by-step instruction on how I can fix this issue without having to restore or enter them 1-by-1. thankyou :think:
Hello, I'm currently running Windows 8.1. This is the first time i've used Windows in about 5-10 years so go easy ! I have some software called "pingy" which is required to be installed on my computer. When i download and extract the software there are three files --> BIN, ENV & TEST Here...
Hi everyone, I'm now running the windows 8 64 bit OS, and logged by a Microsoft account. Now I am doing some work using Visual Studio and encouter some problems about the PATH variable. 1. Under current Microsoft account, I cannot see the full PATH variable neither in CMD or the...
Hello Guys My Question is What is Microsoft most variable professional and how to become it do we need to job with them,donate to them or we earn ourself if we earn ourself tell me how.. thank You Fair Winds, Win8pctech
Hello, Am using windows 8 pro just to check whether it supports all the softwares and languages to install and run it. The first attempt to run vbscript resulted an error with a message 'Variable is undefined:Session'. What does this mean and how to fix this issue in the same os (I want this in...
If someone was to copy the variables and I just re-added them myself would that work or would I have to do a system restore? If they can be simply added by me could someone copy them here? Thanks for any help
Hi. I'm trying to find where on the registry that check box variable is allocated but I can't manage to find it using regedit. If someone knows I would be glad to have this information. 10418 Thank You.
Eight Forums Android App Eight Forums IOS App Follow us on Facebook