Re: self deleting exe ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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



.



Relevant Pages

  • Re: Why questions dont get answered, or "No, Ive already RTFM, tell me the answer!"
    ... >>> while you may need the reference for obscure options later. ... but apply what you just said to someone who decides to trash Windows ... I think it's great that Linux comes with so many applications! ... > those books everywhere they must sell, ...
    (Fedora)
  • Re: Why questions dont get answered, or "No, Ive already RTFM, tell me the answer!"
    ... >> while you may need the reference for obscure options later. ... but apply what you just said to someone who decides to trash Windows ... > There's lots of documentation on installing, so if they get it installed, I ... Probably not so steep if Linux is your first OS. ...
    (Fedora)
  • Re: Linux and Spywares - lack of reading
    ... > They had another reference today - it was a spyware application. ... Linux? ... Windows platforms that have moved from IE to mozilla. ...
    (Fedora)
  • Re: mex-setup for both fortran AND c
    ... I read somewhere that you can't mix C and Fortran using mex in Windows, ... but you can do it in Linux. ... I can't re-locate the reference at present. ...
    (comp.soft-sys.matlab)
  • Re: Future of IT in Lebanon
    ... working knowledge of Indian programmers DNA, nor of their intuitive Java ... > So Longhorn is not an experiment and Linux is an experiment? ... another chapter in the Windows story, and the Microsoft marketing machine is ... > application opens, Check the about, it says Microsoft Visual Basic 6.3. ...
    (soc.culture.lebanon)