我的目标是删除双引号并通过 blat 将 .txt 文件的资源作为正文邮件发送,我已经看到很多关于此的问题(删除双引号).. 但我不知道,我在做什么错误的。这是我的代码
set "now=%date:~4%"
for /f %%i in ('FORFILES /D %now% /m *.csv /c "cmd /c echo @fname"')
do @set MyVariable=%%~i > C:\temp\count.txt
CD C:\temp\blat3217\full
blat C:\temp\count.txt -p user -s "Incoming_File_Alert" -to mymail@mail.com
编辑:
这给输出空白。
编辑 2:
如果我用这个切换第 2 行FORFILES /D %now% /m *.csv /c "cmd /c echo @fname" > C:\temp\count.txt
输出是这样的
"407232_341600" "TW39369763_341610" "1726_341592" "407316_341601" "16001_341597" "100001317_341590" "407367_341602" "DHB11838_341593" "407439_341606" "407556_341604" "2373_341595" "ALL1020-461_341614" "407382_341605" "3598_341613" "PO051334_341589" "407537_341607" "407222_341598" "TW39369964_341611" "407403_341608"