10元请问调用debug写入exe的BAT代码的问题在哪?
想用批处理同时写出两个exe文件,请问一下为什么call:add_1时1.exe可以正常写出但是一到call:2时就没法写出了顺便问一下 more <"%~f0" +1|debug>nul 是读取整个文件第一行后所有的内容的内容给debug吗,能否用more读取指定范围内的数据给debug
call:add_1
if not exist 1.exe (echo no find.&pause>nul&exit) else (echo finish&pause>nul)
call:add_2
if not exist 2.exe (echo no find.&pause>nul&exit) else (echo finish&pause>nul&exit)
:add_1
pushd %tmp%\t1.17&&more <"%~f0" +1|debug>nul&&popd&©/b %tmp%\t1.17\t* "1.exe"&&rd/s/q %tmp%\t1.17
e100 4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00
... ... ... ...
n t3
rcx
B232
w
q
goto:eof
:add_2
pushd %tmp%\t1.17&&more <"%~f0" +1|debug>nul&&popd&©/b %tmp%\t1.17\t* "2.exe"&&rd/s/q %tmp%\t1.17
e100 4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00
... ... ... ...
n t3
rcx
B232
w
:goto:eof |