CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2001
    Location
    Germany
    Posts
    23

    Delete a file that has been executed


    Hi,

    is it possible that a started programme can delete its own file? I need this for a very small uninstall programme...

    Thanks,

    mabrin


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Delete a file that has been executed

    I don't think that you can delete an open file. In order to do this you have to start the second app, which will wait for the end of the execution of the first and then delete it.

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Delete a file that has been executed

    Another thought is to copy the program to the Windows Temporary folder and execute it from there. Eventually it will be discardedby the system.

    John G

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

Featured