Delete AppData Temp files
I'm looking to create a batch that would clean the AppData Local Temp folder on all user profiles at a specific time.
Would this be the proper command for it to start off?
Answer Chosen by the Author
The variable TargetDir will contain whatever path you specify.
rd deletes a directory. This command is the same as the rmdir command.
/s deletes a directory tree (the specified directory and all its sub-directories, including all files)
/q Specifies quiet mode. Does not prompt for confirmation when deleting a directory tree.
set TargetDir=C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data
rd /s /q "%TargetDir%"
Save that as a BAT file, and you can use it with any tool such as SCCM or KACE.