• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Trying to make a .bat file that can delete files and folders older than a specific day

lokiju

Lifer
I create snapshots of a bunch of VM servers that get dumped to a NAS and then to tape. Works like a charm except that it doesn't purge files that are older than 7 days like it should so I'm trying to make my own .bat file of sorts that will do this.

I'd need to be able to determine how old the file or folder is though before deleting it and I'm not seeing any way to accomplish this.

Any ideas?

It's on a Server 2003 fwiw.
 
What exactly are you trying to delete, the snapshots of the virtual machines? Snapshots build upon one another and depend on the previous one to work. Also, you should not run a virtual machine off a snapshot for long or you will kill performance and disk space.
 
Back
Top