dir "%lfn%" /w/ad|find /i "%lfn%" >nul
if not errorlevel 1 goto final
md "%lfn%" >nul
dir "%lfn%" /w/ad|find /i "%lfn%" >nul
if not errorlevel 1 goto ok
set pos=
set left=%lfn%
set right=
:toleft
get # "%left%" '\' /x >nul
set pos=%get%
get z "%lfn%" %pos% >nul
set right=%get%
get r "-" %pos% /w1 >nul
get z "%left%" /w%get% >nul
set left=%get%
dir "%left%" /w/ad|find /i "%left%" >nul
if not errorlevel 1 goto toright
goto toleft
:toright
if "%right%"=="" goto end
get # "%right%" '\' >nul
if "%get%"=="0" goto last
get r "+" %pos% /w%get% >nul
set pos=%get%
get r "-" %pos% /w1 >nul
get z "%lfn%" /w%get% >nul
set left=%get%
get z "%lfn%" %pos% >nul
set right=%get%
md "%left%" >nul
dir "%left%" /w/ad|find /i "%left%" >nul
if not errorlevel 1 goto toright
set lfn=%left%
goto fail
:last
md "%lfn%" >nul
:end
dir "%lfn%" /w/ad|find /i "%lfn%" >nul
if not errorlevel 1 goto ok
:fail
wbat box "创建目录失败!^%lfn%" 重试,返回
if errorlevel 2 goto final
goto start
[ Last edited by GOTOmsdos on 2007-4-13 at 10:28 PM ]作者: drake 时间: 2007-4-13 22:32 老大,您可能误会我的意思了,这贴子楼主的本意是想在F盘建立一个在DOS下能看到WIN下看不到的隐藏目录,和矮人的ARGO。。一个意思,不过矮人的可以在WIN下看得到,他是想建立一个比矮人还要强的目录。