I need to mark some folders on my C: and D: drives as temporary, so that all contents saved in them get deleted after shutdown.
How can I do that?
Assuming you're on Windows, write a script to delete the folders in question. You could also do this on start up to create the folder(s) (if applicable to your situation).
Open up gpedit.msc (local Policies) - > Computer Configuration -> Windows settings -> Scripts -> Shutdown / Startup -> Add