Hi,
I looking to do two thinks below:
1) forfiles command in a batch job to delete all desktop.ini files on all PC on my network. (for simplicity, lets just say I only have two PC on my 8 PC network.
Below is what I'm trying and is not working in a batch file, (C is PC1, and E is on PC2) I was assuming below would delete all desktop.ini in all directories and sub-directories, hidden or read only - forced? (plus a few other parameters - shot in the dark) There is no error message it just does not work, desktop.ini is still there.
forfiles.exe /p "C:" /s /m desktop.ini /d -1 /c "cmd /c del /f /s /ar /as /ah /aa @file"
forfiles.exe /p "E:" /s /m desktop.ini /d -1 /c "cmd /c del /f /s /ar /as /ah /aa @file"
Any suggestions?
2) Delete all empty "_vti_cnf" directories on all PC's on my network. For this one I'm open to suggestions. I'm not opposed to using the "Erase" or "Delete" commands..or any others which will work. I'm going to run the end result batch file in scheduled tasks.
Any help/suggestions is greatly appreciated.
Thanks, James Anning - email Janning197@aol.com