简易debug版:- @echo off
- set db=61 62 63 64 65
- (echo e0100 %db%
- echo r cx
- echo 5
- echo n xyz.txt
- echo w
- echo q)|debug
- start xyz.txt
复制代码 bat版(abc.txt文件放在当前目录内):- @echo off
- setlocal enabledelayedexpansion
- call ascmap.cmd /437 $||(echo ascmap.cmd文件缺失&pause&exit)
- for /f "delims=" %%a in (abc.txt)do set str=%%a&set str=#$:~0x!str: =,1##$:~0x!,1#&call:ECHO
- pause
- :ECHO
- ECHO %str:#=^!%
复制代码
|