Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
You should phrase that as a question and give us some additional information like which OS you are using... Obviously it is Windows so you could try a shutdown script. –  Simon Mar 25 '13 at 9:34
Running a script on boot time will be much easier. Place the script in startup folder. –  mnmnc Mar 25 '13 at 10:33
Sorry.Im new to these kind of things.thanks You. –  user147096 Dec 1 '13 at 14:11
add comment

1 Answer

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

share|improve this answer
Thank you for Your reply .Ill definitely try it. –  user147096 Dec 1 '13 at 14:09
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.