Click to See Complete Forum and Search --> : Delete a file that has been executed


mabrin
March 21st, 2001, 02:45 AM
Hi,

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

Thanks,

mabrin

Iouri
March 21st, 2001, 07:35 AM
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
iouri@hotsheet.com

John G Duffy
March 21st, 2001, 07:50 AM
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