in reply to Issues with dir names containing spaces-
The third arg of Win32::Process::Create is a command line, not an argument for the program. See CreateProcess for details.
However, it's much easier to use the multiple argument form of system rather than quoting:
my $app = 'C:\\Program Files\\Microsoft Office\\Office12\\excel.exe'; my $arg = "C:\\Documents and Settings\\my.dir\\My Documents\\My Compan +y\\QA\\$newFilename"; system($app, $arg);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Issues with dir names containing spaces-
by rickMan (Novice) on Jul 21, 2009 at 18:54 UTC | |
by rickMan (Novice) on Jul 23, 2009 at 12:37 UTC | |
by ikegami (Patriarch) on Jul 23, 2009 at 15:06 UTC | |
by rickMan (Novice) on Jul 23, 2009 at 16:27 UTC | |
by ikegami (Patriarch) on Jul 23, 2009 at 16:30 UTC | |
|