【方案1】BAT调用debug命令 | @echo off | | | | more +4 %~s0|debug|find ":0100" | | pause&exit | | A100 | | DB 'bbs.bathome.net' | | | | D100 | | qCOPY |
【方案2】BAT调用PowerShell | @echo off | | | | powershell -c "[System.Text.Encoding]::ASCII.GetBytes('bbs.bathome.net')" | | | | powershell -c "[System.Text.Encoding]::ASCII.GetBytes('bbs.bathome.net') | ForEach-Object {[System.Convert]::ToString($_,16)}"COPY |
|