PDA

View Full Version : %_SB_INSTALLDIR% With spaces and run program.



NewsArchive
02-17-2010, 02:40 AM
Looks like I have a problem with quotes and directories with
spaces....

If I use Run Program, I don't see how I can put quotes, as if I try to
put one after the EXE name, it complains as being not valide file
name, and if I put them around the directory, I end up with "C:\My
Special Directory\"myown.exe which does not seem right.

The same commands (without quotes) with "short" directories are
working just fine. Not sure what I am missing.

Bernard

NewsArchive
02-17-2010, 02:40 AM
Bernard,

> Looks like I have a problem with quotes and directories with
> spaces....
>
> If I use Run Program, I don't see how I can put quotes, as if I try to
> put one after the EXE name, it complains as being not valide file
> name, and if I put them around the directory, I end up with "C:\My
> Special Directory\"myown.exe which does not seem right.
>
> The same commands (without quotes) with "short" directories are
> working just fine. Not sure what I am missing.

In "Run Program", the double-quotes scenario for the file to be executed is
handled automatically. Both "File Name" and "Target Folder" fields do not
need a double-quote.

Friedrich

NewsArchive
02-17-2010, 02:41 AM
>In "Run Program", the double-quotes scenario for the file to be executed is
>handled automatically. Both "File Name" and "Target Folder" fields do not
>need a double-quote.

Ha! I was starting to suspect something like that, thanks for
confirming. OK, so, am I guessing right if I believe I should put
double quotes if I have that same directory in my parameters? It's not
autmatically handled there, is it?

Thanks for your patience, I know I am being thick about all this...

Bernard

NewsArchive
02-17-2010, 02:41 AM
>Ha! I was starting to suspect something like that, thanks for
>confirming. OK, so, am I guessing right if I believe I should put
>double quotes if I have that same directory in my parameters? It's not
>autmatically handled there, is it?
>
>Thanks for your patience, I know I am being thick about all this...

Never mind, I got it! Works just fine now.

Bernard

NewsArchive
02-17-2010, 02:42 AM
Hi Bernard,

> Ha! I was starting to suspect something like that, thanks for
> confirming. OK, so, am I guessing right if I believe I should put
> double quotes if I have that same directory in my parameters? It's not
> autmatically handled there, is it?
>
> Thanks for your patience, I know I am being thick about all this...

You only need double-quotes if you have, say, spaces in the Command Line.

For example, if you have the following "Command Line":

/XYZ this is my command line

then you have to use double-quotes around the parameter value.

/XYZ "this is my command line"

Friedrich