二楼的代码问题在这
copy /b a.txt+b.txt a.txt
改成下面这样就应该没问题了
copy /b a.txt+tmp a.txt
debug的方案 | @goto :start | | r bx | | 1 | | r cx | | 0 | | w | | q | | | | :start | | @echo off | | chcp 437 & graftabl 936 & cls | | pushd %~sdp1 | | ren %~snx1 %~sn1.tmp | | debug %~sn1.tmp < %0 >nul | | ren %~sn1.tmp "%~nx1" | | popdCOPY |
|