![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2006
Posts: 3
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Game engine designer
Join Date: May 2005
Location: Sweden
Posts: 318
Rep Power: 4
![]() |
Try system("\"C:\\Program Files\\RunBat\\thebat.bat\"");
__________________
http://www.klarre.se |
|
|
|
|
|
#3 |
|
Expert Programmer
|
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 |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0
![]() |
Yeah, that should work. Makes sense because DOS requires the quotes for paths that have spaces.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|