Project : error PRJ0003 : Error spawning 'cmd.exe'.
When i compile a project MFC (Visual studio 2005) with the default setting, Ihave this error message but my .exe is done and work.
| | Build started: Project: SuperviseurGesma, Configuration: Debug|Win32
|
| | Creating temporary file "d:\Gesma2005\SuperviseurGesma\SuperviseurGesma\Debug\RSP00001A24003812.rsp" with contents [ /out:.\Debug\SuperviseurGesma.exe.embed.manifest /notify_update /manifest .\Debug\SuperviseurGesma.exe.intermediate.manifest ] Creating command line "mt.exe @d:\Gesma2005\SuperviseurGesma\SuperviseurGesma\Debug\RSP00001A24003812.rsp /nologo" Creating temporary file "d:\Gesma2005\SuperviseurGesma\SuperviseurGesma\Debug\BAT00001B24003812.bat" with contents [ @echo Manifest resource last updated at %TIME% on %DATE% > .\Debug\mt.dep ] Creating command line "d:\Gesma2005\SuperviseurGesma\SuperviseurGesma\Debug\BAT00001B24003812.bat" |
| | Embedding manifest... Project : error PRJ0003 : Error spawning 'cmd.exe'. |
| | Build log was saved at "file://d:\Gesma2005\SuperviseurGesma\SuperviseurGesma\Debug\BuildLog.htm" SuperviseurGesma - 1 error(s), 0 warning(s) |
[2302 byte] By [
didier_g] at [2008-1-10]
The date on this post is pretty ancient. Anyway, here's what I found:
If you set your environment variables (Start > Control Panel > System : Advanced tab; click Environment Variables) to use %SystemRoot% instead of explicit paths (say, C:\Windows), MSVS 2005 does not understand %SystemRoot% or it resets its entries... ...or both. Don't just believe what the list box says; Edit the item and you'll see the differences.
What you must do is change MSVS 2005 options (Tools menu > Options > Project and Solutions > VC++ Directories) to ensure that
$(SystemRoot)
$(SystemRoot)\System32
$(SystemRoot)\System32\wbem
are specified BEFORE $(PATH).Setting your system's environment variables to use $(SystemRoot) rather than %SystemRoot% (indeed, even using
%SystemRoot%) is not a good idea: too much (MSVS 2005 as well as other applications) seems to break.