![]() |
|
Create One-Click Shutdown and Reboot. - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: Create One-Click Shutdown and Reboot. (/Thread-Create-One-Click-Shutdown-and-Reboot) |
Create One-Click Shutdown and Reboot. - 0wi5py - 03-04-2014 Simple & Basic Tutorial on How To Create One-Click Shutdown and Reboot Batch File Introduction: Batch file is the name given to a type of script file, & a text file containing a series of commands to be executed by the command interpreter. batch files must have to be saved with ".bat" Extension. This Batch file Executes Events such as: Shut Down, Reboot, Log Off, on a Windows XP OS.:Smile: Steps:
Code: shutdown -r -t 10 -c "Rebooting your PC"Other Switches that We can include in our Files are as Follows:
Hope You Like it :Smile: I will Soon Back with a Collection of New,Cool, & Helpful Tricks!! :Smile:
Thanks:Smile: RE: Create One-Click Shutdown and Reboot. - Inori - 03-04-2014 This is a pretty common trick but I like that you took the time to explain it ![]() You can also just use a rainmeter module. ![]() Skin: Bluevision alpha 0.2 RE: Create One-Click Shutdown and Reboot. - 0wi5py - 03-04-2014 Yes You are Right, It's really a common Trick..... I am Working on a New Useful Tricks.:Smile: RE: Create One-Click Shutdown and Reboot. - Cheshire - 03-04-2014 You can also do this remotely to other computers on the same network by adding the -m attribute. Some systems though you'll need to enter a password or it won't allow access. I've been experimenting a lot with this recently.
RE: Create One-Click Shutdown and Reboot. - Inori - 03-04-2014 Holy crap @Cheshire that's awesome! I didn't know about that so I guess it's time to get crackin'! RE: Create One-Click Shutdown and Reboot. - Cheshire - 03-04-2014 (03-04-2014, 10:59 PM)w0lf Wrote: Holy crap @Cheshire that's awesome! I didn't know about that so I guess it's time to get crackin'! An easy way to mess with some people if you share the same network as is to first Code: net viewthen, once you have the system name, you can use the shutdown command Code: shutdown -m \\[comp name] -s [to shutdown or -r to restart] -t [time warning] -c [even add a message]You can also use Code: shutdown -m \\[comp name] -aAgain, some computers will have firewalls up to prevent this, or you need to enter a password, but it works great at my college where we still use XP and its easy to have remote access across the network. You can also have some fun with TASKLIST and TASKKILL commands to shut down friend's web browsers or other programs without warning. :Laughing: RE: Create One-Click Shutdown and Reboot. - Inori - 03-05-2014 Hahaha thats great! multiple thanks to you @Cheshire RE: Create One-Click Shutdown and Reboot. - 0wi5py - 03-05-2014 Thanks For your Appreciation & More Advance Tips On CLI Tricks...... Many thanks to w0lf & cheshire :Smile: Nice work cheshire:Thumbs-Up::Smile: RE: Create One-Click Shutdown and Reboot. - Cheshire - 03-05-2014 Thank you, @0wi5py.
RE: Create One-Click Shutdown and Reboot. - ArkPhaze - 03-09-2014 Quote:batch files must have to be saved with ".bat" Extension. Not true, they can be saved with the *.cmd extension as well, and it's required in some cases to save with that extension. |