回复 2# apang
谢谢阿胖大师的回答,不过我还有点不明白,下面这个就不行:- @echo off
- : cmd /k %0 :
- echo sdfsdfsdf
- if sdfl then geo dn
- pause
复制代码 而且看您这两个回复的代码:
http://bbs.bathome.net/thread-28856-1-1.html- @echo off
- %1(for /f "tokens=1*" %%a in ('"%~0" :^|sort') do echo,%%b)>b.txt&exit/b
- for /f "tokens=1-3delims==" %%a in (a.txt) do echo,%%c %%a=%%b=%%c
复制代码 和
http://bbs.bathome.net/thread-28862-1-1.html- @echo off
- %1(for /f "delims=" %%a in ('"%~0" :')do net user "%%~nxa")2>nul&pause&exit/b
- for /f "skip=4 delims=" %%a in ('net user') do (
- set "s=%%a"
- setlocal enabledelayedexpansion
- for /l %%b in (0 25 50) do echo,!s:~%%b,25!
- endlocal
- )
复制代码 中,%1和%0 :也反复出现了,这里是什么意思,还望指教。 |