General discussion


Can I write a script for auto shut down

By lilsniffles ·
I want my system to automatically shut down when I lose my internet connection. Is it possible to write a windows script for this or does one alreay exist?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Repost as 'Q&A'

by CharlieSpencer In reply to Can I write a script for ...

I can think of a couple of ways, although I'd have to do some research to write the script itself. One would be to ping something beyond your router repeatedly, and shut down when the ping fails. Another would be to check the status of your network connection. Both are possible, but I don't know the exact commands to do so off the top of my head.

Try reposting this in the 'Q&A' forum. The 'Discussion' forum is for matters of general discussion, not specific problems in search of a solution. The 'Water Cooler' is for non-technical discussions. You can submit a question to 'Q&A' here:;content

There are TR members who specifically seek out problems in need of a solution. Although there is some overlap between the forums, you'll find more of those members in 'Q&A' than in 'Discussions' or 'Water Cooler'.

Be sure to use the voting buttons to provide your feedback. Voting a '+' does not necessarily mean that a given response contained the complete solution to your problem, but that it served to guide you toward it. This is intended to serve as an aid to those who may in the future have a problem similar to yours. If they have a ready source of reference available, perhaps won't need to repeat questions previously asked and answered. If a post did contain the solution to your problem, you can also close the question by marking the helpful post as "The Answer".

Related Discussions

Related Forums