FOREFILES Removing Directory


hello,

 looking working forefiles windows 2003 server. creating backups on drive , use forefiles go drive , delete folders older 3 days. backups come in daily, want have forefiles delete folders older 3 days old. dont want go folders, need entire folder , contents deleted if folder created 3 days or more. please appreciated.

it's pretty late here , more (which try in morning) have tried out using for?

for /d %a in ("c:\home\*") echo %a %~ta

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/for.mspx

this walks down folders c:\home , outputs folder , date/time modified stamp. pretty sure if statement added conditional rd.

i imagine whip vbscript pretty task too. :)


Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file