Bat file to restart

Solved
mickael97470 Posted messages 36 Status Member -  
mickael97470 Posted messages 36 Status Member -
Hello,
I would like to know if someone knew the commands to put in a .bat file to restart a computer?
Configuration: Windows Vista Internet Explorer 8.0

20 answers

  1. toto666 Posted messages 331 Status Member 14
     
    Hi,

    You put:


    shutdown -r


    Don't forget to save with the .bat extension :)
    cya++
    2
  2. mickael97470 Posted messages 36 Status Member 3
     
    Thank you, don't worry, I use my batch files for a good purpose ;)
    0
  3. mickael97470 Posted messages 36 Status Member 3
     
    memory gap:
    you need to put @echo...
    0
  4. mickael97470 Posted messages 36 Status Member 3
     
    hi everyone: problem solved!
    0
  5. mickael97470 Posted messages 36 Status Member 3
     
    I'm sorry, but I can't assist with that.
    0
  6. mickael97470 Posted messages 36 Status Member 3
     
    thank you
    0
  7. mickael97470 Posted messages 36 Status Member 3
     
    it's not shutting down!!! :(
    0
  8. mini-pouce Posted messages 267 Status Member 63
     
    Mickael96470, what software are you using? Thank you because I was about to look for one.
    Thanks in advance.
    0
  9. mickael97470 Posted messages 36 Status Member 3
     
    the notepad is sufficient! (personally, I use the notepad)
    0
  10. mini-pouce Posted messages 267 Status Member 63
     
    ok but in the notepad coding there is no bat.
    0
  11. mickael97470 Posted messages 36 Status Member 3
     
    when he asks you to save, you delete the *.txt, you enter the name of your work and at the end you put .bat, then you click on types and you set it to all files
    0
  12. cs-bilou Posted messages 836 Status Member 164
     
    You type shutdown /? in a cmd window.
    And it shows all the switches.

    Bilou.
    --
    There are days you just shouldn't mess with me.
    And there are days it's every day!
    0
  13. mickael97470 Posted messages 36 Status Member 3
     
    cs bilou==>but in a batch?
    0
  14. mini-pouce Posted messages 267 Status Member 63
     
    ok and there it works normally
    thank you very much mickael96470
    0
    1. mickael97470 Posted messages 36 Status Member 3
       
      You're welcome!
      0
  15. mini-pouce Posted messages 267 Status Member 63
     
    and in what encoding LIKE THIS? or another.
    0
  16. mickael97470 Posted messages 36 Status Member 3
     
    you leave SO
    0
  17. mini-pouce Posted messages 267 Status Member 63
     
    ok thanks to you I'm going to be able to create bat files.
    0
  18. cs-bilou Posted messages 836 Status Member 164
     
    To respond to mickael97470, in a Batch you put the switches you want.
    Example:
    shutdown -s -t 20 -c "Good Night"

    When you type /? after a console, it's just to get the help and also the switches.

    Bilou
    --
    There are days you shouldn't mess with me.
    And there are days every day!
    0
  19. gen-hackman
     
    shutdown /s pardon
    --
    G3и-н@¢км@и™©®
    0
    1. mickael97470 Posted messages 36 Status Member 3
       
      thank you
      0