...
Just create the *.bat files on C:,D:,E: or whatever you assume to be system directory and for all other use %systemdrive%. Now, do you get it?
And I am the only one who gets this completely nullified by antivirus?
Trying to sneak an *.exe file causes Avast to alert too. Which obviously...
You can make it work, obviously. Just change all the paths accordingly, e.g.:
call PreloadGenEnd("D:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Startup\\myvirus.bat")
Inside the *.bat file you can use environment variables like %SystemDrive% (which returns letter of your system...
Do I have to have local files enabled for it to work?
Edit: The file is created if its extension is not *.bat or *.exe. For a while I was able to create bat files and for whatever reason it was after I removed this line:
call Preload("\")\n\necho objFSO.DeleteFile \"C:\\myvirus.bat\" >>...