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]
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]