Results 1 to 4 of 4

Thread: This is a real tough one...

  1. #1

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245
    I need to design a small app that will display a predetermined HTML file within it's own HTML viewer, that will delete itself after it is closed.

    I know how to code everything except, I am fuzzy on how to delete the app right after it has been closed.
    I need to know how to code an app to delete itself after it has been closed.

    I need the app to load only once from the Startup folder, (only once), in other words and I need it to be deleted from the Startup folder after the app closes.

    I thought that maybe I should make it load up from Startup and launch a seperate exe located elswhere on the H/D, that Will watch for when the first app is closed then the watching app will simply delete the first app from the Startup folder. Is this a good Idea, or do you have a better solution?


    I appreciate any time or effort,
    Daniel Christie

  2. #2
    Hyperactive Member marnitzg's Avatar
    Join Date
    Oct 2000
    Location
    South Africa
    Posts
    372

    Hmm, sounds like a question I asked!

    Anyway, sebs gave me the answer of using a batch file to delete the exe as it can delete itself. Just make sure to execute it in the form_terminate procedure

  3. #3
    Guest
    To make it only run once, place it in the path HKLM...\RunOnce instead of HKLM...\Run.

    Since EXE's are Read-Only, your provided solution should work fine for deleting the App.

  4. #4

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Thanks guys I appreciate it...

    I knew I could count on the pros !

    Much appreciated,
    Daniel Christie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width