Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I run command line with spaces?

Status
Not open for further replies.

SepMan76

Technical User
Apr 5, 2001
45
US
I want to run the command:

c:\Program Files\New Office\Front Desk\senddata.exe

in a batch file, but the spaces are messing me up. How should I format this?

c:\"Program Files"\"New Office"\"Front Desk"\senddata.exe
doesn't work... I know it is just a matter of where to put the quotes, but I haven't got it yet... thanks for the help.

Chris
 
Try this:

"c:\Program Files\New Office\Front Desk\senddata.exe"

- James.
 
Thanks... I tried

c:"\Program Files\New Office\Front Desk\senddata.exe"

I didn't even think of putting the quotes outside the c:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top