tayrezn
asked on
Project : error PRJ0003 : Error spawning 'cmd.exe' Microsoft Visual Studio 2005 C++ .net
I'm still getting this error when I build my C++ program in Microsoft Visual Studio 2005 - Project : error PRJ0003 : Error spawning 'cmd.exe' I have taken the steps in "Error spawning 'comd.exe' from VS 2005 pro C++" solution but it isn't working for me. I am able to solve it temporarily by changing the Embedded manifest to "no". This works if I do it for each project.
I did the steps:
Goto Start --> Programs --> Microsoft Visual Studio .. -> Tools --> Visual Studio Command Prompt
Type "path > C:\path.txt" at the command prompt, and then "exit"
Goto Start --> Run and type "cmd.exe"
Type "path < C:\path.txt", and then "exit"
Then I did this:
open C:\path.txt in notepad
Copy everything.
Press Winkey (That exists between Ctrl and Alt) + Pause
Goto Advanced, Environment Variables
Select PATH and click Edit put the copied text, click OK. Do the same for the other list box too.
This is what I pasted into the Environmental Variables - User variables for PATH:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;C:\Pro gram Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin;C:\Pr ogram Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINDOWS\ Microsoft. NET\Framew ork\v2.0.5 0727;C:\Pr ogram Files\Microsoft Visual Studio 8\VC\VCPackages;PATH=C:\Pr ogram Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;C:\Pro gram Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin;C:\Pr ogram Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINDOWS\ Microsoft. NET\Framew ork\v2.0.5 0727;C:\Pr ogram Files\Microsoft Visual Studio 8\VC\VCPackages;PATH=C:\Pr ogram Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;C:\Pro gram Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin;C:\Pr ogram Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINDOWS\ Microsoft. NET\Framew ork\v2.0.5 0727;C:\Pr ogram Files\Microsoft Visual Studio 8\VC\VCPackages;PATH=C:\Pr ogram Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\BIN\x86_amd64;C:\Prog ram Files\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;C:\Pro gram Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin;C:\WI NDOWS\Micr osoft.NET\ Framework\ v2.0.50727 ;C:\Progra m Files\Microsoft Visual Studio 8\VC\VCPackages;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;;C:\php;C:\ Program Files\Common Files\Adobe\AGL;C:\apache2 triad\bin; C:\apache2 triad\perl \bin;C:\ap ache2triad \php\bin;C :\apache2t riad\mysql \bin;C:\ap ache2triad \opssl\bin ;C:\apache 2triad\p
I had to add a user variable for PATH but I edited the system variable with the above path.txt.
This still did not work.
I would appriceciate any suggestions. Thanks.
I did the steps:
Goto Start --> Programs --> Microsoft Visual Studio .. -> Tools --> Visual Studio Command Prompt
Type "path > C:\path.txt" at the command prompt, and then "exit"
Goto Start --> Run and type "cmd.exe"
Type "path < C:\path.txt", and then "exit"
Then I did this:
open C:\path.txt in notepad
Copy everything.
Press Winkey (That exists between Ctrl and Alt) + Pause
Goto Advanced, Environment Variables
Select PATH and click Edit put the copied text, click OK. Do the same for the other list box too.
This is what I pasted into the Environmental Variables - User variables for PATH:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;C:\Program
I had to add a user variable for PATH but I edited the system variable with the above path.txt.
This still did not work.
I would appriceciate any suggestions. Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
"Error spawning 'command line'.
A command, command line, which was formed from input in the Property Pages dialog box, returned an error code but no information will appear in the Output window.
Possible reasons for this error:
Low system resources. Close some applications to resolve this.
Insufficient security privileges. Verify that you have sufficient security privileges.
The executable paths specified in VC++ Directories do not include the path for the tool that you are attempting to run.
For makefile projects, you are missing a command to run on either Build Command Line or Rebuild Command Line. "
So, thank you so much. You savek my life!
By the way, cmd.exe was in C:\WINDOWS/system32