in reply to Re: system command can't spawn cmd.exe
in thread system command can't spawn cmd.exe

Hi holli ,

I don't think this will work, in fact i just tested and it doesn't work !
Protecting the command itself with quotes doesn't protects from the space, at least in my shell.

zlr

  • Comment on Re^2: system command can't spawn cmd.exe

Replies are listed 'Best First'.
Re^3: system command can't spawn cmd.exe
by nimdokk (Vicar) on Jan 12, 2005 at 16:33 UTC
    I've found protecting it with single quotes instead of double quotes often works. Something like:

    $file=File::Spec->catfile('c:','path',with spaces',to','file'); $file="\'$file\'";