Results 1 to 3 of 3

Thread: Anyone up to this challenge?

  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 that will delete itself after it is closed.

    I need to know how to code an app to delete itself after it is done.

    Does anyone have an idea of how to achieve this task?


    I appreciate any time or effort,
    Daniel Christie

  2. #2
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    you can try outputting the code to delete App.Exe into a vbscript (.vbs) file, execute that and terminate the program. Make sure the vbs pauses long enough for your program to close, or vbs won't be able to delete the file. Make sure the vbs has the instructon to delete itself at the end too. afaik, vbs is loaded into memory, so file is not used, and can be deleted.

    I'm not sure of the command to delete a file from vbs.

  3. #3
    Lively Member
    Join Date
    Sep 2000
    Location
    South Africa
    Posts
    76

    Unhappy

    The problem is, you will not be able to delete the program, while it is running, or executing any command. I dont think your answer lies in VB itself. Are you planning on deleting the app using a dos shell ?


    =)

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