• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2782
  • Last Modified:

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

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.
0
YouJustTrade
Asked:
YouJustTrade
  • 2
1 Solution
 
t0t0Commented:
You need to add 'c:\windows\system32\' to your system's global path setting.
0
 
AkmetraCommented:
Check your PATH variable:

echo %PATH%

Perhaps you've customized it somehow. On my 2008 (not R2) box everything's fine.
0
 
t0t0Commented:
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
 
0
 
QlemoC++ DeveloperCommented:
However, this is just a workaround. Windows adds system32 automatically to the path (usually).
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now