Jump to content

Recommended Posts

Posted

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?


Posted

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)

Posted

According to the ''C:\Program' is not recognized' somewhere the quotes were stripped from the command. Try doubling the quotes.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...