- @echo off
- set info=互助互利,支付宝扫码头像,感谢赞助
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- powershell -NoProfile -ExecutionPolicy bypass ^
- $f1='样本实例.txt';^
- $d=(get-date).toString('yyyyMMdd');^
- $text=[IO.File]::ReadAllLines($f1,[Text.Encoding]::Default);^
- [System.Collections.ArrayList]$a=@();^
- [System.Collections.ArrayList]$b=@();^
- for($i=0;$i -lt $text.length;$i++){^
- $line=[Convert]::ToString($text[$i], 16);^
- [void]$a.add($line);^
- [void]$b.add([Convert]::ToInt32($line.substring(0,2),16));^
- };^
- [IO.File]::WriteAllLines($d+'-16.txt', $a, [Text.Encoding]::Default);^
- [IO.File]::WriteAllLines($d+'-10-2.txt', $b, [Text.Encoding]::Default);
- echo;%info%
- pause
复制代码
|