本帖最后由 523066680 于 2014-12-14 13:52 编辑
- robocopy /L /MIR /copyall /TEE "%src%" "%dst%" /XD %fold% /XF %file% ^
- /UNILOG:"UniLog%dt:/=-%.txt" /X /FP /NS /NDL /NP
复制代码 其中 /UNILOG 参数的作用
:: 以 UNICODE 方式将状态输出到日志文件(覆盖现有日志)。
实际执行后生成的文件,开头两个字节是UTF-16LE 的BOM \xFF\xFE
但是后面的内容全都是GBK编码的,Are you kidding me?- ff fe
-
- 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d
-
- 20 20 20 52 4f 42 4f 43 4f 50 59 20 20 20 20 20 3a 3a 20 20 20 20 20 57 69 6e 64 6f 77 73 20 b5 c4 bf c9 bf bf ce c4 bc fe b8 b4 d6 c6 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
-
- 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d
复制代码 对应- -------------------------------------------------------------------------------
- ROBOCOPY :: Windows 的可靠文件复制
- -------------------------------------------------------------------------------
复制代码 WIN7 32位 |