undeletable?

Status
Not open for further replies.

hackert0m

Beta member
Messages
2
i was fooling around with batch files when i decided to try to make an "undeleteable batch file" here is what i did...

i made a folder on my desktop called pattern
i put in the folder thre batch files called 1, 2, and 3
i then made a folder in pattern called 4 amd copied the three batch files into it.

here is what the batch files said:

1.bat:

@ echo off
cd C:\Documents and Settings\Tom2\Desktop\pattern
if not exist "C:\Documents and Settings\Tom2\Desktop\pattern\2.bat" copy "C:\Documents and Settings\Tom2\Desktop\pattern\4\2.bat" "C:\Documents and Settings\Tom2\Desktop\pattern"
if not exist "C:\Documents and Settings\Tom2\Desktop\pattern\4\2.bat" copy "C:\Documents and Settings\Tom2\Desktop\pattern\2.bat" "C:\Documents and Settings\Tom2\Desktop\pattern\4"
start/min 2.bat
exit

2.bat:

@ echo off
cd C:\Documents and Settings\Tom2\Desktop\pattern
if not exist "C:\Documents and Settings\Tom2\Desktop\pattern\1.bat" copy "C:\Documents and Settings\Tom2\Desktop\pattern\4\1.bat" "C:\Documents and Settings\Tom2\Desktop\pattern"
if not exist "C:\Documents and Settings\Tom2\Desktop\pattern\4\1.bat" copy "C:\Documents and Settings\Tom2\Desktop\pattern\1.bat" "C:\Documents and Settings\Tom2\Desktop\pattern\4"
start/min 1.bat
exit

3.bat

@ echo off
cd C:\Documents and Settings\Tom2\Desktop\pattern
if not exist "C:\Documents and Settings\Tom2\Desktop\pattern\3.bat" copy "C:\Documents and Settings\Tom2\Desktop\pattern\4\3.bat" "C:\Documents and Settings\Tom2\Desktop\pattern"
if not exist "C:\Documents and Settings\Tom2\Desktop\pattern\4\3.bat" copy "C:\Documents and Settings\Tom2\Desktop\pattern\3.bat" "C:\Documents and Settings\Tom2\Desktop\pattern\4"
start/min 3.bat
exit


there are only two problems with this, and they can be fixed easily

1.if you delete all the files at once, the process will stop
1.solution scatter the 6 batch files throught the computer

2. you can delete the folder 4
2.solution if you scatter the files, you won't be able to do that

so im thinking, once this thing starts, there is NO way to stop it...
please, try to prove me wrong...it would be greatly appreciated

[Sig edited to size 1. The rules regarding this is posted on every forum on this site. Read 'em sometime...
~Trotter]
 
off topic -

your sig is way too large.
It is only supposed to be ten lines MAX.

Please resize it before Sig Santa does.
 
hackert0m said:

so im thinking, once this thing starts, there is NO way to stop it...
please, try to prove me wrong...it would be greatly appreciated

Okay i proved you wrong. I have stopped it. Easily. Just dont be stupid and run it.:D
 
@echo off
cd C:\documents and settings & cd\ & echo Y & cd.. & echo would
msg * Y
echo U
msg * would
msg * u
echo try
msg * try
cd C:\documents and settings\all users & cd.. & cd.. & cd\
msg * This?
echo this?
pause
:A
echo loser
goto A


Because I like to try anything computer related atleast once...
 
ya, just found something out...

i was going over the three batch files, and i saw a mistake i made with 3.bat.

instead of starting 1.bat, it started it'self. the last command should say:

start/min 1.bat

not

start/min 3.bat

sooo, ya, sry bout that.

and, im sry bout my sig, ill edit it.
 
Status
Not open for further replies.
Back
Top Bottom