Results 1 to 3 of 3

Thread: Delete a program that is running

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    14

    Delete a program that is running

    I have a program X1 that is running and it is in c:\A\X1.exe
    X1 verify that exists a newer version in c:\B\X1.exe

    X1(old) must delete himself from X1, move X1 from folder B to folder A, start newer X1 again and finally unload himself.

    The idea is a program that verify on load that exist a newer version of him and before any form appear for user, make that change.

    The problem is delete a program form disc that is running. There is
    a way to do that ?

    Thank you for any help !!!

  2. #2
    Megatron
    Guest
    No, you can't delete a running EXE. You'd have to make a 3rd party application to scan for the newer version.

  3. #3
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    Nope! Can't do it...a program cant delete itself...(that I know of )

    you could do what i did once..had a mini app that when it was run it would wait 5 or 6 seconds...(till the calling app quits)..then copy the new one in.
    Or delete then move etc....
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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