2 things:
#1) How would i go about getting my program to run on windows startup?
#2) Can i get it to delete a full directory, or do i have to list all the files?
(not writing a virus, just some protection software from my parents :-D)
Printable View
2 things:
#1) How would i go about getting my program to run on windows startup?
#2) Can i get it to delete a full directory, or do i have to list all the files?
(not writing a virus, just some protection software from my parents :-D)
You can just add it to the startup folder...or in the registry:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
(or in HKEY_CURRENT_USER)
the startup folder seemed logical, thats why it was sorta a RTFM question :-/
but i still need to know how to list the specific folders that i need to delete in VB.
Or you could just put a shortcut to it in the startup folder in the start menu. This should be c:\windows\start menu\programs\startup in windows 9x and c:\documents and settings\your usename\start menu\startup in win 2k/xp.
Cheers,
cgkanchi
Thanks again.
Deleting directories is easy, I think. Use the FileSystemObject ( add a reference to the Microsoft Scripting Runtime on first ), and you should be able to handle all the folders and files, including deletion of them.