I have a directory where I want to move files that are over 7 days past their creation date to a new directory on my Windows 2000 Server. Please advise how I can do this?
This isnt working:
This isnt working:
Code:
foreach $file (C:/directory/location/) #My foreach needs help
{
if(stat[10] > 7) #stat[10} is creation file date?
{
system.move $file /newdirectory; #using DOS move command
}
}