Results 1 to 4 of 4

Thread: Run once then delete.

  1. #1

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330

    Run once then delete.

    Hi,
    I'm looking for a way to cause a program to delete itself after a successful run.
    It's an installation program that sets up a Palm universal conduit on the clients computer for some Palm apps I'll be deploying. After the conduit is created, the program is no longer needed.
    Thanks,
    Al.
    A computer is a tool, not a toy.

  2. #2
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    Attached is a module that will delete an app once it has finished running.

    Usage:
    VB Code:
    1. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    2.     DeleteAPP
    3. End Sub

    Basically what it does is in the unload event it writes a bat file and then shells it. This then loops and tries to delete the app. Once the app is no longer in existance the bat file deletes itself.

    Try dropping it into a project, compile the project and run it. Close the exe and say good bye to it.
    Attached Files Attached Files

  3. #3

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    Excellent.
    Thanks,
    Al.
    A computer is a tool, not a toy.

  4. #4
    New Member
    Join Date
    Dec 2002
    Location
    USA
    Posts
    10
    Nice approach..

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