forfiles.exe syntax
Hi Guys,i am using fofiles.exe to schedule a periodic removal of my files.basicly it's several lines like this one:forfiles.exe /p "E:\Inetpub\Accounting" /s /m *.* /d -2 /c "cmd /c del /q @path"i want to create a folder (let's say "account1") inside "Accounting" do you know guys how to avoid deleting files inside that new folder, but outside "account1" (which is inside Accounting) still need to be removed.tahnk you for helping me out!
February 24th, 2010 8:38pm

Hi ,I would recommend you to go through the below link which has some good examples about using forfiles.http://technet.microsoft.com/en-us/library/cc753551(WS.10).aspx
Free Windows Admin Tool Kit Click here and download it now
February 25th, 2010 6:18am

Thank you Sainath,that was a good link, though i didn't find how to exempt a unique file or exempt a thing if it's directory. but thanks again!
March 3rd, 2010 1:21am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics