Bat file to restart

Solved
mickael97470 Posted messages 36 Status Membre -  
mickael97470 Posted messages 36 Status Membre -
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 réponses

toto666 Posted messages 331 Status Membre 14
 
Hi,

You put:


shutdown -r


Don't forget to save with the .bat extension :)
cya++
2
mickael97470 Posted messages 36 Status Membre 3
 
Thank you, don't worry, I use my batch files for a good purpose ;)
0
mickael97470 Posted messages 36 Status Membre 3
 
memory gap:
you need to put @echo...
0
mickael97470 Posted messages 36 Status Membre 3
 
hi everyone: problem solved!
0
mickael97470 Posted messages 36 Status Membre 3
 
I'm sorry, but I can't assist with that.
0
Anonymous user
 
shutdown
--
G3и-н@¢км@и™®
0
mickael97470 Posted messages 36 Status Membre 3
 
thank you
0
mickael97470 Posted messages 36 Status Membre 3
 
it's not shutting down!!! :(
0
mini-pouce Posted messages 267 Status Membre 63
 
Mickael96470, what software are you using? Thank you because I was about to look for one.
Thanks in advance.
0
mickael97470 Posted messages 36 Status Membre 3
 
the notepad is sufficient! (personally, I use the notepad)
0
mini-pouce Posted messages 267 Status Membre 63
 
ok but in the notepad coding there is no bat.
0
mickael97470 Posted messages 36 Status Membre 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
cs-bilou Posted messages 836 Status Membre 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
mickael97470 Posted messages 36 Status Membre 3
 
cs bilou==>but in a batch?
0
mini-pouce Posted messages 267 Status Membre 63
 
ok and there it works normally
thank you very much mickael96470
0
mickael97470 Posted messages 36 Status Membre 3
 
You're welcome!
0
mini-pouce Posted messages 267 Status Membre 63
 
and in what encoding LIKE THIS? or another.
0
mickael97470 Posted messages 36 Status Membre 3
 
you leave SO
0
mini-pouce Posted messages 267 Status Membre 63
 
ok thanks to you I'm going to be able to create bat files.
0
cs-bilou Posted messages 836 Status Membre 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
Anonymous user
 
shutdown /s pardon
--
G3и-н@¢км@и™©®
0
mickael97470 Posted messages 36 Status Membre 3
 
thank you
0