Originally posted by namejm at 2006-7-22 16:57:
Re zxcv:
可以不用“del /q d:\log.txt”删除原文件,直接用“echo.>>d:\log.txt”覆盖清空?应该用echo.>d:\log.txt才行,不能用两个>。
...
不好意思,测试的时候为了观察log.txt字节增长用“>>”,发帖时没改回来^_^
Last edited by zxcv on 2006-7-22 at 21:35 ]
Originally posted by namejm at 2006-7-22 16:57:
Re zxcv:
You can directly use "echo.>>d:\log.txt" to overwrite and clear instead of using "del /q d:\log.txt" to delete the original file? It should be "echo.>d:\log.txt" instead, and two >> should not be used.
...
I'm sorry, when testing, I used ">>" to observe the byte growth of log.txt, and I didn't change it back when posting ^_^
Last edited by zxcv on 2006-7-22 at 21:35 ]