P
PilotMI80
Hi,
I try to issue the command :
c:\program files\flashget\flashget.exe http:\\url.with.no.white.space
d:\a directory
(same can be tested with any prog that need a directory (potentially
containing whitespaces) as a parameter )
the url parameter does not contain whitespace so it is not a matter
so far, I tried many combinations (to escape baskslashes and quotes)
with the back tick (seems to work better for me although i don't need
the output), and with exec but to no avail :
here are a few :
1.
exec "c:\\program files\\flashget\\flashget.exe url d:\\a directory";
output> 'c:\program' not found (expected)
2.
exec "\"c:\\program files\\flashget\\flashget.exe\" url";
works ok but
exec "\"c:\\program files\\flashget\\flashget.exe\" \"url\"";
outputs 'c:\program' not found
3.
my @exe = ("\"c:\\program files\\flashget\\flashget.exe\" url \"d:\a
directory\"");
exec {$exe[0] } @exe; #as read in the manual
outputs nothing but does nothing because the command issue is wrong
(I assume the program is not the whole line so...)
4.
my @exe = ("\"c:\\program files\\flashget\\flashget.exe\"");
exec {$exe[0]} @exe, url; # or "url" or 'url' or " url" or ' url' ...
compiles but does nothing
I run out of ideas and am still stuck, by now, i do something like
this :
`"\"c:\\program files\\flashget\\flashget.exe\" url d:\\a_directory\"
which works but is quite limited.
any suggestion ?
thanks
I try to issue the command :
c:\program files\flashget\flashget.exe http:\\url.with.no.white.space
d:\a directory
(same can be tested with any prog that need a directory (potentially
containing whitespaces) as a parameter )
the url parameter does not contain whitespace so it is not a matter
so far, I tried many combinations (to escape baskslashes and quotes)
with the back tick (seems to work better for me although i don't need
the output), and with exec but to no avail :
here are a few :
1.
exec "c:\\program files\\flashget\\flashget.exe url d:\\a directory";
output> 'c:\program' not found (expected)
2.
exec "\"c:\\program files\\flashget\\flashget.exe\" url";
works ok but
exec "\"c:\\program files\\flashget\\flashget.exe\" \"url\"";
outputs 'c:\program' not found
3.
my @exe = ("\"c:\\program files\\flashget\\flashget.exe\" url \"d:\a
directory\"");
exec {$exe[0] } @exe; #as read in the manual
outputs nothing but does nothing because the command issue is wrong
(I assume the program is not the whole line so...)
4.
my @exe = ("\"c:\\program files\\flashget\\flashget.exe\"");
exec {$exe[0]} @exe, url; # or "url" or 'url' or " url" or ' url' ...
compiles but does nothing
I run out of ideas and am still stuck, by now, i do something like
this :
`"\"c:\\program files\\flashget\\flashget.exe\" url d:\\a_directory\"
which works but is quite limited.
any suggestion ?
thanks