2014-04-18 25 views

回答

0
@echo off 

:start_loop 
    if exist "c:\Response.txt" ( 
     start cmd /c "c:\2weeks.bat" 
     goto :exodus 
    ) 
    rem :: wait for 1 minute 
    w32tm /stripchart /computer:localhost /period:1 /dataonly /samples:60 >nul 2>&1 

goto :start_loop 
:exodus 
0

這將在Vista及以後的工作:

@echo off 
:loop 
    if exist "c:\folder\Response.txt" "c:\folder\2 week.bat" 
    rem - reduce CPU usage by waiting for 15 seconds 
    timeout /t 15 /nobreak 
goto :loop 
相關問題