Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 13565

Delete all "desktop.ini" files and all empty "_vti_cnf" directories on every PC on my network

$
0
0

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


Viewing all articles
Browse latest Browse all 13565

Trending Articles



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