|
本帖最后由 527104427 于 2022-12-7 06:49 编辑
明白了,原来是这么个原理!太感谢兄弟了,解决大问题!这样就可以批量搞了:
方法一(code转码):
set^ EnviMode=1
set^ ForceLocal=1
set wm_char=0x0102
set Char=D:\doc\desktop\杂七杂八\研究\本人工具\多磁盘测试\MBR-4个主分区、4096扇区对齐.VHD
exec -pid:cmdpid cmd.exe
wait 500
find --forpid:%cmdpid% --wid* cmdwid,
code **,Char,*unib,CharCodes
sed -ex CharCodes=0,0x{\h+} 0x{\h+},0x\001\002,CharCodes
forx *v CharCodes,KeyCode, set @@sendmsg=%cmdwid%;%wm_char%;%KeyCode%;0
方法二(getf转码):
set^ EnviMode=1
set^ ForceLocal=1
set wm_char=0x0102
set Char=D:\doc\desktop\杂七杂八\研究\本人工具\多磁盘测试\MBR-4个主分区、4096扇区对齐.VHD
exec -pid:cmdpid cmd.exe
wait 500
find --forpid:%cmdpid% --wid* cmdwid,
getf -bin Char,0#*,CharCodes
sed -ex CharCodes=0,0x{\h+} 0x{\h+},0x\002\001,CharCodes
forx *v CharCodes,KeyCode, set @@sendmsg=%cmdwid%;%wm_char%;%KeyCode%;0
|
|