Computing.Net > Forums > Programming > .Bat file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

.Bat file

Reply to Message Icon

Name: L33t N00b
Date: March 21, 2009 at 06:28:26 Pacific
OS: Windows Vista
Subcategory: Batch
Comment:

Hi, I made this fake virus.
but my question is: in the script i have a loop, how to make it that its loops like 3-4 times en then moves on to the next line ? Here is the script

@echo off
title MILLENIUM WORM VIRUS
color 0a
echo Virus Detected!
echo identifying virus...
PING 1.1.1.1 -n 1 -w 5000 > NUL
echo Do you want to delete ?
echo Press Enter.
pause >nul
echo Access Denied.
echo Access Denied.
echo Virus Activated...
PING 1.1.1.1 -n 1 -w 3000 > NUL
echo Deleting windows...
PING 1.1.1.1 -n 1 -w 3000 > NUL

:A
dir/s
goto A
??????
echo Windows deleted...
shutdown -s -t 1



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: March 21, 2009 at 07:39:33 Pacific
Reply:

real cute


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: lee123abc
Date: March 21, 2009 at 12:25:42 Pacific
Reply:

I hope whoever you give this to punches you.

set count=4
:A
if %count% leq 0 goto :B
dir /s
set /a count -=1
goto :A
:B
echo Windows deleted...
shutdown -s -t 1


0

Response Number 3
Name: L33t N00b
Date: March 23, 2009 at 12:20:16 Pacific
Reply:

Thx man


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Urgent find word from fil... Batch file copy folders



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: .Bat file

bat file for deleting www.computing.net/answers/programming/bat-file-for-deleting/11636.html

Question for the bat file guys www.computing.net/answers/programming/question-for-the-bat-file-guys-/10925.html

Bat file access to remote HKCU www.computing.net/answers/programming/bat-file-access-to-remote-hkcu/15385.html