Results 1 to 6 of 6

Thread: VB Help

  1. #1
    Junior Member
    Join Date
    Jan 2003
    Posts
    13

    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)

  2. #2
    Senior Member
    Join Date
    Jun 2003
    Posts
    772
    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

  3. #3
    Junior Member
    Join Date
    Jan 2003
    Posts
    13
    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.

  4. #4
    Antionline Herpetologist
    Join Date
    Aug 2001
    Posts
    1,165
    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
    Buy the Snakes of India book, support research and education (sorry the website has been discontinued)
    My blog: http://biology000.blogspot.com

  5. #5
    Junior Member
    Join Date
    Jan 2003
    Posts
    13
    Thanks again.

  6. #6
    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
  •