本帖最后由 Nsqs 于 2017-3-2 12:05 编辑
- ' 2>nul&cls&type a.txt|cscript -nologo -e:"vbs" "%~0"&pause&exit
- read=wsh.stdin.readall
- wsh.echo left(read,len(read)-2) & "ba"
复制代码
- @echo off
- for /f "delims=" %%1 in (a.txt)do (
- set /a n+=1
- call set #_%%n%%=%%1
- )
- call set #_%%n%%=%%#_%n%%:~,-2%%ba
- for /l %%1 in (1 1 %n%)do call echo %%#_%%1%%
- pause
复制代码
|