- Joined
- Apr 5, 2018
- Messages
- 30
- Reaction score
- 0
In a far past, when most computers were running on DOS, I wrote an extension to Autoexec.bat that clean the hard-disks of all clogging files before shitting down the computer.
Now, with Windows 10, my "Temp" directories are filled with all kind of crap that keep using disk space and slowing down the system.
Unfortunately, Autoexec.bat is not used anymore by Windows 10 and I need to clean my hard disk manually before I turn it off.
Windows offers a disk cleanup where one can select what files to delete (including the Recycle Bin) but that has to be done manually also.
Is there any way to call Disk Cleanup or a kind of batch file to delete the Temp directories when shutting off the computer?
Eventually a kind of batch file that can be run periodically?
TIA
Now, with Windows 10, my "Temp" directories are filled with all kind of crap that keep using disk space and slowing down the system.
Unfortunately, Autoexec.bat is not used anymore by Windows 10 and I need to clean my hard disk manually before I turn it off.
Windows offers a disk cleanup where one can select what files to delete (including the Recycle Bin) but that has to be done manually also.
Is there any way to call Disk Cleanup or a kind of batch file to delete the Temp directories when shutting off the computer?
Eventually a kind of batch file that can be run periodically?
TIA