-
December 6th, 2003, 06:56 PM
#1
Junior Member
VB Help
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)
-
December 6th, 2003, 07:10 PM
#2
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 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 - me
www.elhalf.com
-
December 6th, 2003, 07:22 PM
#3
Junior Member
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, 07:24 PM
#4
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
-
December 6th, 2003, 07:33 PM
#5
Junior Member
-
December 8th, 2003, 10:46 AM
#6
Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|