A batch file to check internet connection and shutdown pc, if offline -
the title pretty says all. so, have no-break connected pc, because have lot of blackouts here live. problem is: if i'm not @ home, shutdown pc correctly if there blackout? so, realized modem not connected no-break; means that, in case of black-out, modem turn off, thus, no internet reach computer, kind of way tell pc when lights out. sure, might not case (sometimes internet goes off reasons other power), accept risk. so, looking code that, once execute (what i'll when i'm leaving home), checks if there internet conection. if yes, nothing , keep checking. if not, shutdown computer.
wiki
Comments
Post a Comment