无法使此批处理脚本功能写入文本文件

时间:2017-12-26 00:17:05

标签: windows batch-file

我尝试过很多方法让这个批处理脚本写入文件但没有成功

>>output.txt(
for /f "tokens=5 delims=ms " %a in ('tracert -4 -d -h 1 google.com ^|find " ms "') do @echo %a
)

1 个答案:

答案 0 :(得分:1)

>>output.txt(

必须是

>>output.txt (

因为(是合法的文件名字符。