Coder's Guild Mailing List

Re: Run me and I delete myself . . .

Posted by Maarten Albrecht on 2000-07-12

I don't think Windows will let you delete a file that's being used. 
Maybe this is the solution:
http://www.delphi3000.com/article.asp?id=561

--Maarten

"Frank Hale" wrote:
> 
> >> Code in any language will be helpful, or even some docs on how to do it,
> >> but Delphi example would be tops.
> >> 
> 
> Why don't you put in code that just deletes the program file, or maybe the directory that its in once its ran. I'm sure it would be very simple to do and only a couple of lines of code. So do you know how to delete a file? It would be the same thing I'm sure.
> 
> Frank
> 
> 
> 
> Send FREE Greetings for Father's Day--or any day!
> Click here: http://www.whowhere.lycos.com/redirects/fathers_day.rdct
> > 
> 
> 
>