In Unix-like systems, generally /tmp is wiped on shutdown (there are some exceptions to this, but most of the time you can rely on this).
Is there a directory in Windows 10 that can guarantee this deletion? I have heard of
%TEMP% but my (outdated?) understanding is that only some computers have it set up to wipe every time the computer is shutdown. And what is the status of this solution for older versions of Windows?
A related question: Is there a way to store files in RAM in Windows? This of course will guarantee the behaviour I want.
EDIT: It seems like there isn't a good place in a default factory setup of Windows. In that case, I might have to hack away at this one. Is there a common program that has a folder that it deletes regularly, or on shutdown? I'm wondering about something like a web browser cache, or a Microsoft Word "rescued backups" folder?
Use case: I'm wanting to put some private files somewhere when I use someone else's computer. I want these to be gone when I've finished using them (say, an hour later). However, I can't guarantee that I will be there to delete them - perhaps a powercut happens, or we get distracted and I don't have a chance to return to delete them. I also don't want to mess with the other person's computer or settings, so creating a scheduled task to delete them is not an option.