I am looking to move folders and files that were last modified 2 weeks ago to a backup location. However The folders are listed as job numbers so the folders always have different names. I need to move folders and files out when the server gets to crowded. How can I automate this process. I was going to use these commands, however this only lets me move folders I know the names of.
ofs = CreateObject("Scripting.FileSystemObject")
ofs.CopyFolder("C:\temp1\stuff", "C:\temp2\")
ofs.deletefolder("C:\temp1\stuff")
ofs = CreateObject("Scripting.FileSystemObject")
ofs.CopyFolder("C:\temp1\stuff", "C:\temp2\")
ofs.deletefolder("C:\temp1\stuff")