Hi all
I'm trying to run an external app from within another perl script and want to do something like the following:
my $working_dir = "C:\Documents and Settings\somedir\";
exec ($working_dir.'myprogram.exe');
If I do it that way aroung then exec doesn't parse the spaces in the sting correctly. I've tried escaping them but same problem.
If I ran exec (cd, $working_dir); then it would work.
Whats the best way to achieve this?
Thanks
I'm trying to run an external app from within another perl script and want to do something like the following:
my $working_dir = "C:\Documents and Settings\somedir\";
exec ($working_dir.'myprogram.exe');
If I do it that way aroung then exec doesn't parse the spaces in the sting correctly. I've tried escaping them but same problem.
If I ran exec (cd, $working_dir); then it would work.
Whats the best way to achieve this?
Thanks