Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: SHUTDOWN.bat  (Read 10707 times)

0 Members and 1 Guest are viewing this topic.

userid

  • Guest
SHUTDOWN.bat
« on: February 27, 2007, 09:38:02 AM »
I am trying to make a shutdown.bat file.
I know if i go to note pad and type shutdown -s -t12 it is suppose to shut my pc down in 12 seconds.

SO i type it in and save it as d.bat
It comes up as a bat file so i open it.

When i open it it looks  like this and just dose that for ages!

http://img478.imageshack.us/img478/6900/untitledlwd6.png

The text keeps moving and more types its slef.

How can i stop this and make my pc shutdown..




If theres hope, there computer hope....

fffreak



    Adviser

  • That's right I am a final fantasy freak.
  • Thanked: 3
    • Yes
    • JSPCRepair
  • Certifications: List
  • Experience: Guru
  • OS: Windows 7
Re: SHUTDOWN.bat
« Reply #1 on: February 27, 2007, 01:22:13 PM »
Use this...By the way you should have posted this in DOS.

Code: [Select]
shutdown -s -t 12
8-)fffreak
« Last Edit: February 27, 2007, 08:47:41 PM by fffreak »
Computers are the future, not us. Learn everything you can about them while you still can, soon they will be learning about us... Every bit of advice that I give you is best guess, it is your choice whether or not you listen to it.

userid

  • Guest
Re: SHUTDOWN.bat
« Reply #2 on: February 27, 2007, 01:48:43 PM »
No still the same :(




PS How can i save this as a txt file

Code: [Select]
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*[/tt]
« Last Edit: February 27, 2007, 01:49:58 PM by userid »

fffreak



    Adviser

  • That's right I am a final fantasy freak.
  • Thanked: 3
    • Yes
    • JSPCRepair
  • Certifications: List
  • Experience: Guru
  • OS: Windows 7
Re: SHUTDOWN.bat
« Reply #3 on: February 27, 2007, 02:42:08 PM »
You are not using it right, it works just fine for me. About the code above, I don't exactly get what it is you are trying to do, are you just trying to save that code into a text file. Just open notepad paste the code, and save as filename.txt.
Computers are the future, not us. Learn everything you can about them while you still can, soon they will be learning about us... Every bit of advice that I give you is best guess, it is your choice whether or not you listen to it.

GX1_Man

  • Guest
Re: SHUTDOWN.bat
« Reply #4 on: February 27, 2007, 06:24:20 PM »
I'll move this for you.  ;)

fffreak



    Adviser

  • That's right I am a final fantasy freak.
  • Thanked: 3
    • Yes
    • JSPCRepair
  • Certifications: List
  • Experience: Guru
  • OS: Windows 7
Re: SHUTDOWN.bat
« Reply #5 on: February 27, 2007, 06:29:28 PM »
Thanks, GX ;).
Computers are the future, not us. Learn everything you can about them while you still can, soon they will be learning about us... Every bit of advice that I give you is best guess, it is your choice whether or not you listen to it.

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: SHUTDOWN.bat
« Reply #6 on: February 27, 2007, 08:44:52 PM »
See, your problem is you put 'shutdown -s -t12' when there's supposed be a space between the '-t' and '12'
So to get this to work it should be 'shutdown -s -t 12
Check this out:
http://www.computerhope.com/shutdown.htm

Hope it helped  ;)

fffreak



    Adviser

  • That's right I am a final fantasy freak.
  • Thanked: 3
    • Yes
    • JSPCRepair
  • Certifications: List
  • Experience: Guru
  • OS: Windows 7
Re: SHUTDOWN.bat
« Reply #7 on: February 27, 2007, 08:47:16 PM »
I already told him how ;).
Computers are the future, not us. Learn everything you can about them while you still can, soon they will be learning about us... Every bit of advice that I give you is best guess, it is your choice whether or not you listen to it.

jjbtcp



    Beginner
    Re: SHUTDOWN.bat
    « Reply #8 on: February 27, 2007, 10:59:50 PM »
    I am having the same problem, i entered the code fffreak said into a batch and it kept repeating.

    Displayname i recommend creating a new shortcut on your desktop (or where ever you want), when it comes up it will ask for location, enter this into the field,   shutdown -s -t 12

    then call it shutdown or what ever you want, when executed this will shutdown your computer in 12 seconds just like you want,  hope this helps
    « Last Edit: February 27, 2007, 11:01:31 PM by jjbech »
    Regards,
                     Joshua

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: SHUTDOWN.bat
    « Reply #9 on: February 27, 2007, 11:09:10 PM »
    Once that code got out all over our school (we have computers in almost every corridor) and everyones shutting other peoples computers down. The schools computer teacher blocked cmd, run and regedit on all computers but not Group Policy :P
    I don't use shutdown though, we can get in so much trouble if we're caught.

    fffreak



      Adviser

    • That's right I am a final fantasy freak.
    • Thanked: 3
      • Yes
      • JSPCRepair
    • Certifications: List
    • Experience: Guru
    • OS: Windows 7
    Re: SHUTDOWN.bat
    « Reply #10 on: February 28, 2007, 12:39:27 AM »
    Trust me I already got in enough trouble at my school, for telling everybody about net send, shutdown, by making myself an admin account, and by locking everybody out of my account, including admins and teachers. My teacher called my parents and the school was about to make it where I couldn't use the computers for the rest of my high school career. I got lucky though.
    Computers are the future, not us. Learn everything you can about them while you still can, soon they will be learning about us... Every bit of advice that I give you is best guess, it is your choice whether or not you listen to it.

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: SHUTDOWN.bat
    « Reply #11 on: February 28, 2007, 01:37:16 AM »
    Woah, poor u. I head last year a guy got suspended for becoming admin on a computer and changing stuff or something, don't really know the full story.
    Every time i go on a comp now i get the name of it.....just in case.... ;)

    lordoftheplat



      Hopeful

    • teh god.
    • Thanked: 1
      Re: SHUTDOWN.bat
      « Reply #12 on: February 28, 2007, 05:03:32 AM »
      i got caught too remember? mr williams lol...that was funny
      i was trying to shut down my frnd's comp and well by accident i
      shutdown the wrong one(pcname) and well the teacher caught me
      and i said it wasnt me it was this other who used my user name to
      shut that comp down AND HAHA i did not get in trouble just a little note :)
      zepperblood.deviantart.com

      Carbon Dudeoxide

      • Global Moderator

      • Mastermind
      • Thanked: 169
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Experience: Guru
      • OS: Mac OS
      Re: SHUTDOWN.bat
      « Reply #13 on: February 28, 2007, 06:36:22 AM »
      If you create a shortcut and have the location for the shortcut:

      shutdown -s -f -t "10"

      And just save it as a shortcut, The computer will shut down even if command prompt is blocked like at school or something.
      I don't know if it works remotely (-m computername) but it should.

      userid

      • Guest
      Re: SHUTDOWN.bat
      « Reply #14 on: February 28, 2007, 10:14:14 AM »
      why are you guys not alloud to shutdown you computers