棘手的事情
这在Windows
下按预期工作ping localhost > nul
并将输出重定向到必杀技。
但我正在Windows CE 6.0设备上编写批处理脚本,同一个调用会创建一个文件“nul”。可以在CE中关闭控制台输出吗?
更新
这是在空目录
中运行dir * > nul
两次后的输出
Directory of \flashdisk\test
06/13/13 15:35 0 nul
Found 1 file(s). Total size 0 bytes.
1 Dir(s) 150664192 bytes free
答案 0 :(得分:1)
此解决方案适用于Windows(7)和Windows CE
只需将输出传输到REM
ping localhost | REM