http://qs321.pair.com?node_id=699051


in reply to Windows quoting

Instead of trying to quote $some_argument, can you pass it as an argument?
system("x.bat", $some_argument);
and then reference it in your batch script as %1 (or however batch scripts do this.)

Replies are listed 'Best First'.
Re^2: Windows quoting
by rovf (Priest) on Jul 22, 2008 at 08:19 UTC
    Instead of trying to quote $some_argument, can you pass it as an argument?

    No, because I do not call the batch file. A different process on a different machine calls the batch file, and it expects only a batch file, which will be invoked without parameters.

    -- 
    Ronald Fischer <ynnor@mm.st>