Help - Search - Members - Calendar
Full Version: Running Things
MSFN Forums > Coding, Scripting and Servers > Programming (C++, Delphi, VB, etc.)

   
Google Internet Forums Unattended CD/DVD Guide
Glenn9999
I got some command-related problems I'm trying to figure out. I'm calling a number of things within a program I wrote, but I'm trying to figure out some errors I'm getting back...here they are:

CODE
Command: c:\windows\system32\cmd.exe /c "del" "D:\BACKUP\Delphi Done\MediaPlayer Demo2\mpdemo.exe"
The filename, directory name, or volume label syntax is incorrect.


CODE
Command: c:\windows\system32\cmd.exe /c "C:\Program Files\Borland\Delphi 3\bin\dcc32.exe" "D:\BACKUP\Delphi Done\MediaPlayer Demo2\mp.pas"

'C:\Program' is not recognized as an internal or external command, operable program or batch file.


I'm throwing the quotes around everything because of the possibility of spaces in the path/filename. The second one especially confuses me since I put that one into a command-prompt manually and had it work.

Any ideas on why these are not working and how to correct them?
phkninja
could it be the long filename, e.g. spaces in the folder names. I have had issues before with spaces in folder names, so try without the spaces (e.g. rename the folders to Delphi_Done or DelphiDone etc)
Mijzelf
According to the ''C:\Program' is not recognized' somewhere the quotes were stripped from the command. Try doubling the quotes.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.