Glenn9999 Posted May 27, 2008 Share Posted May 27, 2008 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: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.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? Link to comment Share on other sites More sharing options...
phkninja Posted May 28, 2008 Share Posted May 28, 2008 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) Link to comment Share on other sites More sharing options...
Mijzelf Posted May 28, 2008 Share Posted May 28, 2008 According to the ''C:\Program' is not recognized' somewhere the quotes were stripped from the command. Try doubling the quotes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now