General information
Category:
Coding, syntax & commands
Title:
RUN a exe whose path contains spaces
I have a problem where I need to run a program that potentially resides in a directory such c:\Program Files\blah blah\the.exe.
I'm currently building the run command in a quoted variable and executing the run with a macro as follows:
xCmnd = '"' + GetTheProgram() + ' ' + GetParameters() + '''
&& xCmnd would look like "C:\Program Files\Blah Blah\The.exe C:\Program Files\Blah Blah\AnotherFileName"
RUN &xCmnd
Fail
If, however xCmnd looked like "C:\Blah\The.exe C:\Program Files\Blah Blah\AnotherFileName" it works.
It appears the parses takes to the first space as the executable file for the run command. Anyone know how to solve this problem.
TIA
Bill WIlson
Sharbot.com
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only