PDA

Click to See Complete Forum and Search --> : VB Help


ejd1
December 6th, 2003, 06:56 PM
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)

el-half
December 6th, 2003, 07:10 PM
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)

ejd1
December 6th, 2003, 07: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.

cgkanchi
December 6th, 2003, 07: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.
Cheers,
cgkanchi

ejd1
December 6th, 2003, 07:33 PM
Thanks again.

Schrodinger
December 8th, 2003, 10: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.