样本BAT脚本
set host=%COMPUTERNAME%
for %I in ("D:\App\Config - %date:/=-% *.zip") do @echo %host% Confi FileSize - %~zI >>"\\hostname\d$\Output\Output %date:/=-%.txt"
错误:
批处理参数中路径运算符的以下用法 替换无效:
%~zI>>" \ hostname \ d $ \输出\输出%日期:/ = - %。txt"