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