Batch file 是否在批处理文件启动命令中转义逗号?
我的below.bat文件创建了一封由Mozilla Thunderbird电子邮件客户端发送的电子邮件。我找不到主题中的逗号。cmd行将逗号字面解释为主题部分的结尾。我怎样才能逃脱他们 我试过在逗号周围加双引号。 试过^, 尝试\, 尝试\, 试过','Batch file 是否在批处理文件启动命令中转义逗号?,batch-file,cmd,Batch File,Cmd,我的below.bat文件创建了一封由Mozilla Thunderbird电子邮件客户端发送的电子邮件。我找不到主题中的逗号。cmd行将逗号字面解释为主题部分的结尾。我怎样才能逃脱他们 我试过在逗号周围加双引号。 试过^, 尝试\, 尝试\, 试过',' @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION start "" "C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe" -compose
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
start "" "C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe" -compose to=abc123@abc.com,subject=test, this comma, subject
EXIT
使用“引用主题”
start”““C:\Program Files(x86)\Mozilla Thunderbird\Thunderbird.exe”-编写到=abc123@abc.com,subject='test,这个逗号,subject'
start "" "C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe" -compose "to='abc123@abc.com',subject='test, this comma, subject'"
在-compose参数的开头和结尾使用“
在子参数的开头和结尾使用
,
。谢谢,你们似乎同时回答,我把它交给了user93353,因为他更深入了一点,所以他可能需要更长的时间来键入问题,所以他可能首先开始回答问题。如果我能选择两者作为正确答案,我会选择!