1.删除嵌套3层以内的空目录
for /l %a in (1,1,3) do for /r %i in (.) do rd %~si
2.将指定文件更名为今天日期
for /f "tokens=1" %a in ('date /t') do rename aa.rar %a.rar
3.嵌套显示连接192.168.1段的ip地址成功数
for /f "tokens=3 delims=: " %%a in (' for /l %%i in ^(1,1,255^) do ping 192.168.1.%%i ^|
find /I "Reply" ') do echo 连接ip地址%%a成功!
posted on 2007-10-26 12:24
疾风随影 阅读(376)
评论(0) 编辑 收藏 引用 所属分类:
Teaching column