-
Experienced User
How to Restart, Shutdown And Log off your computer using .bat file extension
Hey guys found this cool thing on the net on how to Restart, Log Off and Shutdown your computer using .bat File Extension.
Edit: You need to save these to Notepad then go "Save As" "Name".bat Name is just an example.
Log Off Codes :
@echo off
c:
cls
echo hey wana be friends?
pause
echo did u say no???????????
pause
echo u r hacked
echo Type some message!
shutdown -l -t 30 -c “Logging Off”
Shutdown Codes :
@echo off
c:
cls
echo hey wana be friends?
pause
echo did u say no???????????
pause
echo u r hacked
echo Type some message!
shutdown -s -t 30 -c “Shutting Computer Down”
Restart Codes :
@echo off
c:
cls
echo hey wana be friends?
pause
echo did u say no???????????
pause
echo u r hacked
echo Type some message!
shutdown -r -t 30 -c “Restarting Your Computer”
Works for Windows Only Out - Dated so not sure if it works for windows 7
Source
Last edited by Amature Programmer; 03-02-2010 at 05:07 PM.
Amature Programmer.
Beginner Firefox add-on and toolbar Developer.
-
Star
Guess the first three lines and the final line is enough for all three.
Problem with it is if you accidentally click it.
Geeks never die. They just go Offline.
-

Originally Posted by
kavinraja
Guess the first three lines and the final line is enough for all three.
Problem with it is if you accidentally click it.
Like he said the last line is enough:
shutdown -l -t 30 -c “Logging Off”
write shutdown and -l for log off, -r for restart, -s for shutdown. -t for the time in seconds and -c for the message.
you can also be playing with "net user" in cmd. write "net user" to get logon names and then "net user NAME *" to change the password of the chosen logon. works on all version of windows and remember to remove the ""
-
*nix Technical Support
Only thing is, that's using a telnet.... it's not built into Windows like everyone says
pacman -Syyu life not found in sync db
-
If someone accidently clicked the bat file, he/she can open a command prompt and type "shutdown -a" (without the quotes) within 30 seconds to abort the shutdown cycle.
-
not if you only set the timer to 1 second :P
-
*nix Technical Support

Originally Posted by
Pedersen
not if you only set the timer to 1 second :P
If you do that, you've brought it on yourself 
I usually set it to 45 seconds.
-
Buy U3 USB and go playing around in the class room
-
*nix Technical Support
Why a U3 USB? Why not a normal one? It would work too... autorun.inf would all you'd need to play with.
-

Originally Posted by
hellnoire
Why a U3 USB? Why not a normal one? It would work too... autorun.inf would all you'd need to play with.
nahhh, thinking about vista and windows 7 which ask before running
but yes
[autorun]
open=NAME.bat
save as autorun.inf (for anyone who dont know)
Similar Threads
-
By nivels in forum Security Bulletin
Replies: 1
Last Post: 12-20-2011, 11:09 PM
-
Replies: 1
Last Post: 09-14-2011, 05:47 AM
-
By bolalampu in forum Software
Replies: 5
Last Post: 03-28-2009, 02:30 PM
-
Replies: 43
Last Post: 12-03-2008, 03:59 AM
-
By din in forum Spyware/Viruses
Replies: 9
Last Post: 06-15-2008, 09:22 AM
All times are GMT +8. The time now is 10:17 AM.