Server 2008 R2 DOS commands do not natively run in command prompt

Posted on 2009-12-24
Last Modified: 2012-06-27
We have recently deployed a server with Server 2008 R2.  We have an in-house application that runs on this server. The application essentially loads a .cmd file that allows you to choose options for what you want to do with the program.  We have this application running Server 2008 Enterprise, as well as Server 2003 R2 Enterprise without any problems.  

The issue we are seeing is that when running the program, the command prompt does not recognize standard DOS commands such as choice, net, cscript, netstat, ipconfig, etc...  However, when you specify the path (C:\Windows\System32\) to the command, it works without a problem.

Unfortunately, I do not have another Server 2008 R2 server to test this with, so I am curious to know if this is a known issue or if anyone has any idea how to resolve this.
Question by:YouJustTrade
    LVL 16

    Expert Comment

    You need to add 'c:\windows\system32\' to your system's global path setting.
    LVL 1

    Expert Comment

    Check your PATH variable:

    echo %PATH%

    Perhaps you've customized it somehow. On my 2008 (not R2) box everything's fine.
    LVL 16

    Accepted Solution

    right-click My Computer
    click Advanced tab
    click Environment Variables
    double-click Path in System Variables
    add C:\Windows\System32\; to the begninning of the line
    click OK
    click OK
    click OK
    LVL 67

    Expert Comment

    However, this is just a workaround. Windows adds system32 automatically to the path (usually).

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    More or less everybody in the IT market understands the basics of Networking, however when we start talking about Storage Networks, things get a bit dizzier, and this is where I would like to help.
    Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now