Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 3rd, 2006, 3:20 PM   #1
Stephen87
Newbie
 
Join Date: Jun 2006
Posts: 3
Rep Power: 0 Stephen87 is on a distinguished road
Spaces in directories

Guys-
I am writing a program using the ::system("C:\\Program Files\\RunBat\\thebat.bat"); but it is unable to find the file because I think the space in the Program Files. What do you think.
-Stephen
Stephen87 is offline   Reply With Quote
Old Jul 3rd, 2006, 3:31 PM   #2
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 318
Rep Power: 4 Klarre is on a distinguished road
Try system("\"C:\\Program Files\\RunBat\\thebat.bat\"");
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Old Jul 3rd, 2006, 8:54 PM   #3
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
did it work Stephen?
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Jul 7th, 2006, 10:27 AM   #4
frankish
Hobbyist Programmer
 
frankish's Avatar
 
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0 frankish is an unknown quantity at this point
Yeah, that should work. Makes sense because DOS requires the quotes for paths that have spaces.
frankish is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:43 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC