Results 1 to 10 of 10
  1. #1
    Experienced User
    Overall activity: 0%

    Join Date
    Oct 2009
    Posts
    521
    Liked
    0 times
    Points
    10,125

    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.

  2. #2
    Star
    Overall activity: 0%

    Join Date
    Jun 2009
    Location
    India
    Posts
    2,359
    Liked
    146 times
    Points
    18,503
    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.

  3. #3
    Newbie
    Overall activity: 0%

    Join Date
    Dec 2009
    Location
    Denmark
    Posts
    49
    Liked
    0 times
    Points
    2,876
    Quote Originally Posted by kavinraja View Post
    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 ""

  4. #4
    *nix Technical Support
    Overall activity: 35.0%

    Join Date
    Jan 2009
    Location
    /home/hellnoire
    Posts
    9,845
    Liked
    319 times
    Points
    26,077
    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

  5. #5
    Newbie
    Overall activity: 0%

    Join Date
    Sep 2009
    Posts
    35
    Liked
    4 times
    Points
    2,465
    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.
    Regards,
    SKG.

  6. #6
    Newbie
    Overall activity: 0%

    Join Date
    Dec 2009
    Location
    Denmark
    Posts
    49
    Liked
    0 times
    Points
    2,876
    not if you only set the timer to 1 second :P

  7. #7
    *nix Technical Support
    Overall activity: 35.0%

    Join Date
    Jan 2009
    Location
    /home/hellnoire
    Posts
    9,845
    Liked
    319 times
    Points
    26,077
    Quote Originally Posted by Pedersen View Post
    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.

  8. #8
    Newbie
    Overall activity: 0%

    Join Date
    Dec 2009
    Location
    Denmark
    Posts
    49
    Liked
    0 times
    Points
    2,876
    Buy U3 USB and go playing around in the class room

  9. #9
    *nix Technical Support
    Overall activity: 35.0%

    Join Date
    Jan 2009
    Location
    /home/hellnoire
    Posts
    9,845
    Liked
    319 times
    Points
    26,077
    Why a U3 USB? Why not a normal one? It would work too... autorun.inf would all you'd need to play with.

  10. #10
    Newbie
    Overall activity: 0%

    Join Date
    Dec 2009
    Location
    Denmark
    Posts
    49
    Liked
    0 times
    Points
    2,876
    Quote Originally Posted by hellnoire View Post
    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

  1. Replies: 1
    Last Post: 12-20-2011, 11:09 PM
  2. Replies: 1
    Last Post: 09-14-2011, 05:47 AM
  3. Replies: 5
    Last Post: 03-28-2009, 02:30 PM
  4. What file extension are you?
    By Mark in forum Chat
    Replies: 43
    Last Post: 12-03-2008, 03:59 AM
  5. computer shutdown when download file
    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.