回复 11# 77七
批处理可以这样产生bom头- >bom echo(77u/
- certutil -decode -f bom 2.txt
复制代码 还可以这样,参考:http://www.bathome.net/viewthread.php?tid=12347&rpid=79254&ordertype=0&page=1#pid79254- @ECHO off&setlocal EnableDelayedExpansion
- Set gbk=可去便
- chcp 437>nul
- for /f %%a in ('cmd/u/cecho !gbk!')do set utf=%%a
- Set head=!utf:~0,1!!utf:~2,1!!utf:~4,1!
- set/p=!head!<nul>2.txt
复制代码
|