Delete Temp Directory

dvonjr

Commendable
Aug 12, 2016
2
0
1,510
I have a batch file that a friend created for me for Windows XP. I was able to use it through Windows 7, 8 and 8.1 but I cannot get it to work in Windows 10. I could use some help to make it work in Windows 10.

Here is the file;
@echo off
echo.
echo. Cleaning out the Temp directory
del /f /s /q "%Temp%" 1>c:\DelTemp.txt 2>&1
date /T >>C:\DelTemp.txt
time /T 1:36p >>C:\Users\dvonj\Documents\DelTemp.txt
REM notepad C:\Users\dvonj\Documents\DelTemp.txt
type C:\Users\dvonj\Documents\DelTemp.txt >> C:\Users\dvonj\Documents\DelTemp1.txt


 
I know about Disk Cleanup, I also have CCleaner however you have to run those. This batch file is run through Task scheduler to run at 3:00 am when I'm not using the computer and usually sleep. So do you have a solution to get it to work in Windows 10 as it did in previous versions of Windows?