If the argument starts with \", we are out of luck (at least I have not found yet a way how to encode the string '\\"foo' properly for my batchfile
Using the following cmd file as the mechanism of demonstration (called echoem.cmd):
@echo off perl -wle"print qq['$_'] for @ARGV" %*
Does this achieve what you are after?
C:\test>echoem "\"foo" "bar \"qux" \\\"foo '"foo' ### $1 'bar "qux' ### $2 '\"foo' ### $3
In reply to Re: Windows quoting
by BrowserUk
in thread Windows quoting
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |