I use
@echo off
cls
rasphone -h 上网
rasdial 上网 /disconnect
to disconnect from the network,
then use
CreateObject("WScript.Shell").run"Rasdial
this VPS to reconnect automatically.
I combined these two into one batch script that automatically disconnects and reconnects.
My goal is:
during each automatic disconnect-reconnect cycle, I want the IP address to change. If it does not change, then automatically run this script again.
Right now I use ipcomfig each time to check and look at the IP address,
but it really feels too troublesome.
If it could automatically verify it, and if the IP address is the same, automatically run this script again, that would be great.
Hope an expert can help?
@echo off
cls
rasphone -h 上网
rasdial 上网 /disconnect
to disconnect from the network,
then use
CreateObject("WScript.Shell").run"Rasdial
this VPS to reconnect automatically.
I combined these two into one batch script that automatically disconnects and reconnects.
My goal is:
during each automatic disconnect-reconnect cycle, I want the IP address to change. If it does not change, then automatically run this script again.
Right now I use ipcomfig each time to check and look at the IP address,
but it really feels too troublesome.
If it could automatically verify it, and if the IP address is the same, automatically run this script again, that would be great.
Hope an expert can help?
