在批处理文件中,如何传递 / 管道字符串并用双引号 (") 拆分它
:: Pass / Pipe string and split by double quote(")
:: Dont work
echo "hello":"World!" | FOR /F delims^=^: %F IN ('more') DO @echo %F
: was unexpected at this time.
echo "hello":"World!" | FOR /F delims^=^" %F IN ('more') DO @echo %F
" %F IN ('more') DO @ echo %F was unexpected at this time.
:: Work but not what I need.
FOR /F delims^=^" %F IN ('echo "hello":"World!"') DO @echo %F
hello
:: Dont work
echo "hello":"World!" | FOR /F delims^=^: %F IN ('more') DO @echo %F
echo "hello":"World!" | FOR /F delims^=^" %F IN ('more') DO @echo %F
:: Work but not what I need.
FOR /F delims^=^" %F IN ('echo "hello":"World!"') DO @echo %F