Baba Goud

Hi,

On compiling my application in the VC++ IDE, i am getting the following error message "Error executing c:\windows\system32\cmd.exe".

I have re-compiled the application but its giving the same error message. Kindly help me out.

Thanx in advance

Baba



Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

einaros

Are you able to execute c:\windows\system32\cmd.exe manually





Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

daram

Hi...........i am getting the same error while building..........and the cmd.exe is working well..........




Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

daram

I am able to execute C:\Windows\system32\cmd.exe , still same error





Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

einaros

Ok. And are you getting any compiler or linker errors while building the application My next guess is that the setting to execute the latest succesful build is active, there is no previous build available and that the current build fails.





Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

daram

while compiling ......... I am not getting any linker or compiler errors ........only getting "Error executing c:\winodws\system32\cmd.exe".........





Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

einaros

Go to the Build menu and hit Rebuild Solution. Copy-paste the content of the Output window here.





Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

daram

Output Window:

Deleting intermediate files and output files for project ' ws - win32 Debug'.

Error:could not delete file "c:\oct\vob\retailcofee\src\client\ws\VerifyEastServiceResponse" : Access is denied

Error:could not delete file "c:\oct\vob\retailcofee\src\cilent\ws\VerifyEastServiceRequest" : Acess is denied

Deleting intermediate files and output files for project ' CFC - win32 Debug'

Deleting intetmediate files and output files for project ' SISEast - win32 Debug'

--------------------Configuration: ws - win32 Debug------------------------------------------------------

performing Custom build step on ..\..\xsd\VerifyEastService\VerifyEastServiceResponse.xsd

*********************************************************************************************************

XML object Link (TM) D -XML Schema Compiler for C++

copyright (c) Rogue Wave Software corporation 2001-2002. All rights reserved.

********************************************************************************************************

Generated C:\oct\vob\retailcofee\src\Client\Ws\VerifyEastServiceResponse\output-combined2.txt

Generated C:\oct\vob\retailcofee\src\Client\Ws\VerifyEastServiceResponse\xmlolCombinedSummary.xml

Generated C:\oct\vob\retailcofee\src\Client\Ws\VerifyEastServiceResponse\xmolXsdFileSummary.xml

Error executing c:\windows\system32\cmd.exe

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





Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

einaros

Right, well that's hardly a succesful build. It doesn't seem like you've got access to delete the intermediate files (from a previous build) in the output directory. Verify that you've got permission to access the files, and that they aren't already opened by an instance of the application you are compiling (or another application, for that matter).

Anyhoo, the error seems to be in the custom build step -- not in the actual application launch. Open the build log and see if that contains more information, or verify that the custom build step is sane.





Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

daram

i have deleted the debug folder which contains intermediate files..............and then tried to build but still i got the same error.........................




Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

Andreas Masur

daram wrote:
i have deleted the debug folder which contains intermediate files..............and then tried to build but still i got the same error.........................


Just to be clear...you (successfully) deleted the following two things as well:

Error:could not delete file "c:\oct\vob\retailcofee\src\client\ws\VerifyEastServiceResponse" : Access is denied

Error:could not delete file "c:\oct\vob\retailcofee\src\cilent\ws\VerifyEastServiceRequest" : Acess is denied



and you still get the very same error message after that







Re: Visual C++ General Error executing C:\Windows\system32\cmd.exe

Simple Samples

daram wrote:

performing Custom build step on ..\..\xsd\VerifyEastService\VerifyEastServiceResponse.xsd

*********************************************************************************************************

XML object Link (TM) D -XML Schema Compiler for C++

copyright (c) Rogue Wave Software corporation 2001-2002. All rights reserved.

********************************************************************************************************

Generated C:\oct\vob\retailcofee\src\Client\Ws\VerifyEastServiceResponse\output-combined2.txt

Generated C:\oct\vob\retailcofee\src\Client\Ws\VerifyEastServiceResponse\xmlolCombinedSummary.xml

Generated C:\oct\vob\retailcofee\src\Client\Ws\VerifyEastServiceResponse\xmolXsdFileSummary.xml

Error executing c:\windows\system32\cmd.exe

I think all those except the first ("performing Custom build step....") and the last ("Error executing....") are from the Custom build step. It is impossible for anyone to know what is the problem in the Custom build step without knowing what the Custom build step does. My only guess is that it is executing the command processor ("cmd.exe") and whatever command is being executed is failing. That much I can guess and it is likely to be accurate. I certainly don't know what the command is that is failing.

In the Solution Explorer, right-click VerifyEastServiceResponse.xsd to get the properties for it. There is probably a command line there. What is the command line If there is not a command line, what else is there except the General node