Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I believe they will be deleted when the user logs out.</p> <p>Back in the days when people turned off their pcs every day, that was probably a perfect solution.</p> <p>Now, people can potentially go months without logging off, so it may not be a good idea to rely on that.</p> <p>Also, if they turn their machine off without shutting down then the files won't get deleted either.</p> <p>You could use a file system watcher that watches the file you write, and wait for some period of inactivity (10 minuites, 1 hour, 1 day, or what ever) and then delete the file.</p> <p>That won't work for everything though. Some programs may have a file "open", but might not have the underlying file locked. If that happens, then you would have no way of knowing when it's safe to delete the file.</p> <p>However, I'm thinking you can probably just ignore the problem. Most people probably have a surplus of hard drive space anyways, so they probably aren't likely to run into it. If they do, I think Windows pops up a low disk space dialog that gives them the option to clear their temp directory, which would solve the problem.</p> <p><strong>Update:</strong></p> <p>I think Windows Update will restart the user's computer about once a month, so the temp files should be cleared when that happens.</p> <p>There's no guarantee that there won't be problems, but in practice I think it should be pretty rare.</p> <p><strong>Update 2:</strong></p> <p>Prompted by a comment, I went and actually tested this, and it looks like windows doesn't delete the temp files when the user logs out. However, I still say that in the OP's case, this isn't a real problem. When it becomes a problem (because disk space is low) Windows will prompt the user to delete temporary files. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload