tags:

views:

49

answers:

3

When i build my Application in VC6 IDE,i get this error

--------------------Configuration: all - Win32 PRO Unicode Release--------------------
The system cannot find the file specified.
Error executing c:\windows\system32\cmd.exe.

all.exe - 1 error(s), 0 warning(s)

I dont have any custom build commands, and this error is particular to this specific project only

Pls help

A: 

you may be deleted your environment variable

ufukgun
(see http://www.google.com/search?q=environment+variables+windows )
Mike Atlas
in environment variables (C:\WIndows\System32\cmd.exe) it is available.And in Tools->Options->Directories->Executableshas the entry C:\Windows\System32
jebina
Madam Did this solve the problem
ckv
A: 

It is likely you have a custom build command in one of your applications dependencies.

Review them all, and in each one that has anything, add an ECHO ON as the first step. Then when you do your build, you will see the details of what command is failing.

The most common problem I have, is when i try to copy header files to a common location automatically. I sometimes get the relative path wrong. Adding a DIR to the post build is an easy way to show where you are, and can help correct path errors.

EvilTeach
+2  A: 

The Build error was due to the unload of one of our sub-project dsp in our VC dsp file. We unloaded a sub project that was not required for build. but we didnt remove it from project dsp. ( actually we have series of sub - project dsp files to be built with the main dsp file)

Once it was loaded and built again, the error vanished. Thanks for your suggestions and answers. Didnt get the reason, but it solved the problem.

jebina
@Jebina - Great!!!!
ckv
My colleague found that this is not the solution, and the issue is stil open so this could not be answer,so this should not the accepted answer
jebina