Jump to content

programming a file to auto-delete

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
solipsist

solipsist

    Newbie

  • Members
  • Pip
  • 1 posts
i have a file i want to send to an acquaintance as part of a deal we made

however i'm not sure if i can trust this acquaintance to keep their end of their bargain

so what i'm wondering is if there's a way to program a file so that it auto-deletes after certain period

or even to allow me to delete it from this acquaintance's computer remotely should it become necessary

thanks to anyone who can help me out

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Since you cannot delete a file that is running (in Windows), you may have the program issue a command to the task scheduler to have Windows delete it.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
shibbythestoner

shibbythestoner

    Programmer

  • Members
  • PipPipPipPip
  • 135 posts
Or you could have it check the time before doing anything and make it inoperable after a certain date.
Posted Image