
| Quote: | |
|
CODE: [Copy to clipboard]@echo off&SetLocal EnableDelayedExpansion
cd.>ok.txt
if "%1"=="" (set /p file=Please input the file to be cope with:) else (set file=%1)
for /f %%a in ('grep -o ".." %file%') do (
set /a asc=0x%%a
set str=!str!+chr^(!asc!^)
)
set str=""%str%
echo a=%str%:wscript.echo a>__temp.vbs
cscript.exe //nologo __temp.vbs|sed "s/\x0D/\x0d\x0a/g"|more>%~dp1.\ok.txt
del __temp.vbs&start %~dp1.\ok.txt
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |