Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

Run TS command line error, delete old files

$
0
0

Dear SCCM guys,

I am trying to run TS for that delete files older than 30 days without any luck, i tried all scenario i think i should change something in the code but i don't have that experience in scripting, 

command as following

forfiles -p %appdata%\Microsoft\Signatures\ -m *.* -d -30 -c "cmd  /c del /q @path"

error as below:

Run command line Process completed with exit code 1 Command line returned 1 ERROR: The specified directory does not exist. . The operating system reported error 1: Incorrect function.

Thank you


Viewing all articles
Browse latest Browse all 629

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>