Reputation: 568
Is there a way that a program could create a file (this is all within a Windows environment) such as a PDF, which is set to 'expire' within 7 days. By expire I mean that once the time period has passed it will be deleted. If the PDF were to contain sensitive data, could we be confident of a secure way of implementing such a process?
Upvotes: 0
Views: 89
Reputation: 33983
You cannot create a self-destructing file in and of itself. You would have to create a service that runs x many minutes/hours/days, searches for expired files, and deletes them. See this question for some Windows-based schedulers.
Upvotes: 1