wxcute (冰疼)当前离线
荣誉版主
yslyxqysl 当前离线
Dir C:\ /a:d /b 2>nul|Findstr /i "^Windows$">nul||md C:\Windows&Explorer C:\WindowsCOPY
(If Not Exist C:\Windows\nul md C:\Windows)&Explorer C:\WindowsCOPY
md C:\Windows 2>nul&Explorer C:\WindowsCOPY
TOP
stuqx 当前离线
六级士官
@echo offcd /d c:\windowsif %errorlevel% equ 1 (md c:\windows)explorer c:\windowsCOPY
评分人数
flyzr 当前离线
一级士官
@echo off if exist c:\windows (explorer c:\windows) else (md c:\windows) pause >nul COPY
keen 当前离线
@echo offexplorer.exe c:\windows||md c:\windowsCOPY
wangshuping42 当前离线
四级士官
@echo offif exist c:\windows (goto open) else (md c:\windows ):openstart c:\windowsexitCOPY
rwxyxy (goon)当前离线
少校
@echo offcd c:\windows 2>nulif errorlevel 1 ( del c:\windows 2>nul & md c:\windows )explorer c:\windowspause>nulCOPY
quake_wu 当前离线
二级士官
@echo offdir /ad /b c:\ |findstr "windows" &&explorer c:\windows ||md c:\windowsCOPY
q625805390 当前离线
lee 当前离线
@echo offfor %%i in ("c:\windows") do (if exist %%i (explorer %%i) else (md %%i&&explorer %%i))pauseCOPY
nopr 当前离线
@echo offset str=c:\windowsif exist %str% (c:\windows\explorer.exe %str%) else md %str%&c:\windows\explorer.exe %str%pauseCOPY
hs4814 当前离线
@echo off dir c:\windows>nulif errorlevel 1 ( echo 此目录不存在将建立&md c:\windows\ &explorer c:\windows) else (echo 存在此目录&explorer c:\windows) pause>nulCOPY
原帖由 quake_wu 于 2009-6-12 10:30 发表 @echo off dir /ad /b c:\ |findstr "windows" &&explorer c:\windows ||md c:\windows请问一下为什么我这段代码直接在命令行下运行没有异常 放到bat里执行就会出现一点异常,异常就是如果存在windows 它还是会去执 ...
dir /ad /b c:\ |findstr /IX "windows" &&start explorer c:\windows ||md c:\windowsCOPY
wayaoqiang 当前离线
@echo offset pat=c:\WINDOWSif exist %pat% (start %pat%) else (md %pat%&&start %pat%)COPY