Re: self deleting exe ?
- From: "The PocketTV Team" <support@xxxxxxxxxxxx>
- Date: Mon, 20 Nov 2006 17:59:47 -0800
yeah, too bad windows is not as smart as linux in this regard.
on linux, each file has a reference count (link count) of the number of
processes that have the file opened (plus 1 for the file system), so when
you delete a file, you just "unlink" it, i.e. remove the link from the
file-system itself, so the file will still exist until the application
terminates, at which time the link count becomes 0 and the file is deleted
(if no other process have opened that file). smart :)
"Lisa Pearlson" <no@xxxxxxxx> wrote in message
news:%23mjArKPDHHA.4372@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Common problem:
I want to make an executable that when run will delete itself.
The tricky part here is that you can't delete yourself because the file
will be in use!
On Windows you can use RunOnce registry key, so it gets deleted after
reboot.
What are ways to do this on PPC? How can executions be scheduled?
Lisa
.
- Follow-Ups:
- Re: self deleting exe ?
- From: tomfranek
- Re: self deleting exe ?
- References:
- self deleting exe ?
- From: Lisa Pearlson
- self deleting exe ?
- Prev by Date: self deleting exe ?
- Next by Date: How To Use Com Components in c#
- Previous by thread: self deleting exe ?
- Next by thread: Re: self deleting exe ?
- Index(es):
Relevant Pages
|