2014-11-10 1 views
0

은 어떻게 작동하지 않는 가지고있는 경우가 if %errorlevel% equ 0 echo 1을 시도 할 수 있습니다 내가 그것을이 경우 어떻게 오류 수준을 사용합니까?

:LOG 
dir /s /b /ad c:\*.* > F:\Logs\10%random%.txt 
if errorlevel 0 echo 1 
dir /s /b /ad c:\*.* > F:\Logs-s\10%random%.txt 
if errorlevel 0 echo 2 
dir /s /b /ad c:\*.* > D:\Logs\10%random%.txt 
if errorlevel 0 echo 3 
dir /s /b /ad c:\*.* > D:\Logs-s\10%random%.txt 
if errorlevel 0 echo 4 
dir /s /b /ad c:\*.* > G:\Logs\10%random%.txt 
if errorlevel 0 echo 5 
dir /s /b /ad c:\*.* > G:\Logs-s\10%random%.txt 
if errorlevel 0 echo 6 
dir /s /b /ad c:\*.* > J:\Logs\10%random%.txt 
if errorlevel 0 echo 7 
dir /s /b /ad c:\*.* > J:\Logs-s\10%random%.txt 
if errorlevel 0 echo 8 
dir /s /b /ad c:\*.* > Q:\Logs\10%random%.txt 
if errorlevel 0 echo 9 
dir /s /b /ad c:\*.* > Q:\Logs-s\10%random%.txt 
if errorlevel 0 echo 10 
call :c 0F " C Drive Copyed 
goto UNLOCK 

답변

0

를 작동하는 경우에만 번호를 반향 오류 수준을 사용합니까,하지만해야합니다.

관련 문제