我在Windows命令行参考中的以下内容似乎相关:
*Using multiple commands
You can use multiple commands separated by the command separator && for
string, but you must enclose them in quotation marks (for example,
"command&&command&&command").
*Processing quotation marks
If you specify /c or /k, cmd processes the remainder of string and quotation marks
are preserved only if all of the following conditions are met:
o You do not use /s.
o You use exactly one set of quotation marks.
o You do not use any special characters within the quotation marks (for
example: &<>( ) @ ^ |).
o You use one or more white-space characters within the quotation marks.
o The string within quotation marks is the name of an executable file.
If the previous conditions are not met, string is processed by examining the first
character to verify whether or not it is an opening quotation mark. If the first
character is an opening quotation mark, it is stripped along with the closing
quotation mark. Any text following the closing quotation marks is preserved.