December 6th, 2003, 05:56 PM
#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)
December 6th, 2003, 06:10 PM
You can just add it to the startup folder...or in the registry:
(or in HKEY_CURRENT_USER)
The above sentences are produced by the propaganda and indoctrination of people manipulating my mind since 1987, hence, I cannot be held responsible for this post\'s content
December 6th, 2003, 06:22 PM
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.
December 6th, 2003, 06:24 PM
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.
December 6th, 2003, 06:33 PM
December 8th, 2003, 09:46 AM
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.