My Windows 7 Professional Edition on AMD64 started to act up recently and I was able to narrow it down to the following issue. Using an Administrator account I can launch the the cmd line and execute any system command:
c:\>ver
Microsoft Windows [Version 6.1.7601]
However, when I try to use any such system command in a .bat file it won't find the command. I believe this has to do with the fact that the batch file interpreter actually forks a child process for the command and I can confirm that by just trying to call
the 'ver' command like below from the command line:
c:\>for /f %a in ('ver') do echo %a
'ver' is not recognized as an internal or external command,
operable program or batch file.
I checked PATH settings, user privileges and the HKU\Software\Microsoft\Command Processor settings in the registry so far but to no avail. What else could there possibly be that impacts the way child-processes are launched from the cmd?
All this worked fine a month ago and things must have gotten messed up through some software installation I can no longer trace back. There are no valid restore points unfortunately.
Any idea would be greatly appreciated!
Thanks,
Holger