0
我希望腳本的ping IP, 如果IP達到運行speciffic程序 否則等待5分鐘,然後重試ping的IPWindows shell腳本循環
本我寫的代碼,但它需要一些調整
@ECHO OFF
ping 192.168.1.5
IF ERRORLEVEL 0 GOTO Label0
IF ERRORLEVEL 1 GOTO Label1
:Label0
%WinDir%\program.exe
GOTO End
:Label1
timeout /t 300
GOTO End
當你運行這個時會發生什麼?什麼不行? – monojohnny
我的問題是讓腳本從延遲開始執行 – user3374544