复制代码双击生成样本文件(需调用ASCMap获取特殊字符):- @echo off
- setlocal enabledelayedexpansion
- chcp 437 >nul
- call ASCMap $
- echo !$:~0xff,1!!$:~0xfe,1! 2^>nul 3^>"!$:~0x9,1!!$:~0x9,1! !$:~0x9,1!!$:~0x9,1!!$:~0x9,1!!$:~0x9,1!!$:~0x9,1!!$:~0x9,1!!$:~0x9,1!!$:~0x9,1!!$:~0x9,1!!$:~0x9,1!!$:~0x9,1!
- echo @(for %%%%a in (test^) do echo test^)^>tmp
- echo @for /f "skip=2" %%%%a in (tmp^) do @echo !$:~0x9,1!!$:~0x9,1!
- echo echo 123
- echo pause
- )>样本文件.bat
- chcp 936 >nul
- echo 测试
- echo on
- 样本文件.bat
- pause
复制代码
|