1.

Solve : How do I make no prompt for deleting files??

Answer»

I'm making a short little file so that I can put in SCHEDULED Tasks to run EVERY night, but I when I try to DELETE Windows Temporary Files it gives me a prompt, here's what I get.
Code: [SELECT]C:\Windows\temp*, Are you sure (Y/N)?
Here's what's in my file so far, also if you have anything else I should add, please tell me. Thanks!

Code: [Select]@echo off
del C:\Windows\temp
cls
fastopen
dir /s/b/ad \history > %drive%\cleanup.txt
dir /s/b/ad \cookies > %drive%\cleanup.txt
cls
defrag C: -f
defrag D: -fTry:

echo y | del C:\Windows\temp > nul

or:

del/q C:\Windows\temp

etc...

Good luck



Discussion

No Comment Found