本帖最后由 zaqmlp 于 2019-4-28 11:11 编辑
- @echo off
- set info=互助互利,支付宝扫码头像,感谢赞助
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- set "txtfile=文本.txt"
- set "choice=1"
- powershell -NoProfile -ExecutionPolicy bypass ^
- gc '%txtfile%'^|%%{^
- write-host $_.trim();^
- if('%choice%' -eq '0'){^
- [void](md $_.trim() -force);^
- }else{^
- [IO.File]::WriteAllText($_.trim()+'.txt','',[Text.Encoding]::Default);^
- };^
- };^
- write-host '%info%' -ForegroundColor green;
- pause
复制代码
|