Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Batch File Help


ghost's Avatar
0 0

I need to know what to write into notepad or somthing simmilar that will Automaticaly shutdown a computer without warning when file is clicked on.


ghost's Avatar
0 0

Create a text document–> open it and write: "shutdown -r -f" – for restart and "shutdown -s -f" – for shutdown

After that save it as whatever.bat and just double clikc on it!

I think these are the right commands. I hope i helped you.. If you wanna find more.. try typing "shutdown" in the command line for help..

pRAkNi


ghost's Avatar
0 0

Create a text document–> open it and write: "shutdown -r -f" – for restart and "shutdown -s -f" – for shutdown

After that save it as whatever.bat and just double clikc on it!

I think these are the right commands. I hope i helped you.. If you wanna find more.. try typing "shutdown" in the command line for help..

pRAkNi


Uber0n's Avatar
Member
0 0

Correct ^^ But if you want to use it on a Win9x system (Windows 95, 98 or ME) you should put this in the batch file instead:

For shutting down: markupSTART "C:\WINDOWS\RUNDLL32.EXE user,exitwindows"

For rebooting: markupSTART "C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec"

Good luck!


korg's Avatar
Admin from hell
0 0

For more fun add shutdown -s -c " " and in the quotes leave a nice message like "Have a nice day" or "drive C deleted"


ghost's Avatar
0 0

…hi there…

this is for windows XP.

@echo off shutdown -s -f -t 00

you won't see the syntax executing because of @echo off. this will shut down all services,without asking as soon as you double click.

you could make:

@echo shutdown -s -f -t 00 -c "bye bye :gha:"

same here,accept it echoes the text you type.

hope it's of any help.

peace.