Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A batch script to detect network and auto restart iNode | 自动检测网络及重启 iNode 脚本
ping | findstr TTL= && goto:networkup || goto :networkdown
echo Network is up
goto :endofscript
echo Network is down
echo Restarting iNode...
taskkill /f /im "iNode Client.exe" /t
timeout 10
"C:\PROGRA~2\iNode\iNode Client\iNode Client.exe"
goto :endofscript
echo Script complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.