Jump to content

Running Things

Recommended Posts

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

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

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...