Search found 11 matches

by jbseventeen
18 Nov 2014 06:17
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Re: Batch to intelligently delete files and folders

Oh they're worth something alright. But they only realize this for one fleeting moment when a hard drive does fail. Its a small engineering company and they want to spend as little money as possible on the "rabble". It's worked out alright with only 2 seagate hard drives that came up with ...
by jbseventeen
17 Nov 2014 17:17
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Re: Batch to intelligently delete files and folders

Mgmt does not agree that hdd failure is a risk worth spending money on (for backup drives) so I try to mitigate what I can with S.M.A.R.T. monitoring (which I know is not always effective) and irregular manual backups. Not sure I understand the relevance though. If it was me, it'd take me no time to...
by jbseventeen
17 Nov 2014 05:14
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Re: Batch to intelligently delete files and folders

As I understood the task, the files going into the target folder manually aren't going to be there for long before this script runs. This will put a 30 day expiry on them and in 30 days they won't exist. The idea is that you can have whatever you want, wherever you want in the work area, as long as...
by jbseventeen
16 Nov 2014 17:00
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Re: Batch to intelligently delete files and folders

I wonder if you might direct me to some good tutorials on this kind of batch scripting instead.

This is not the simple 10 line batch i had first imagined and I'd rather not ask you to "do this for me" for free...
by jbseventeen
16 Nov 2014 16:49
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Re: Batch to intelligently delete files and folders

Hmm...not quite since it even renames files <7 days old. I've been trying to tinker with it myself but unfortunately i suck at it. Brace yourselves (10 changes numbered and encased in ####): @echo off :: Gets date today, :: date 8 days ago (Robocopy uses UTC date/time so add some leeway), :: date 30...
by jbseventeen
16 Nov 2014 02:38
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Re: Batch to intelligently delete files and folders

@foxidrive If I understood you correctly, you mean keeping the current folder exclusion, while adding a routine for files in the marked-for-deletion folder. That would do the trick, sure. @Samir Glad I'm not alone. It is a lot of work but it could work. Will have to do a lot of research and testing ...
by jbseventeen
15 Nov 2014 16:54
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Re: Batch to intelligently delete files and folders

Kudos to you that is one mother of a complicated script! I stared at it for a good 2 hours trying to decipher it before realizing it is beyond me. The test script worked flawlessly in every scenario I could throw at it. The correct files would be moved. The correct files would be skipped. Files with...
by jbseventeen
15 Nov 2014 14:19
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Re: Batch to intelligently delete files and folders

@foxidrive Can't thank you enough! Will test this shortly. PM me a donation link if you have one. @Samir I built a server for just this reason a couple of years ago but it is more or less a paperweight. Some of the users can just about type so I'm not surprised. Will look into steady state though si...
by jbseventeen
15 Nov 2014 00:21
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Re: Batch to intelligently delete files and folders

My experience on most forums has been "put things simply or don't get answered" but fair enough. I can see how the details are important here. I maintain several PC's that are run by other users. Pretty much all of these users maintain their files poorly and 'abandon' unnecessary files in ...
by jbseventeen
14 Nov 2014 09:21
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Re: Batch to intelligently delete files and folders

It was just an example to keep it from being confusing. Talk about FAIL lol. In reality, today's files and folders should be renamed and moved in 7 days and then deleted in 30 days, tomorrow's in 8 / 31 days from today and so on. The script would run once every day during the scheduled shutdown/rest...
by jbseventeen
13 Nov 2014 19:08
Forum: DOS Batch Forum
Topic: Batch to intelligently delete files and folders
Replies: 26
Views: 12816

Batch to intelligently delete files and folders

I'm struggling to create a batch script that performs two basic functions for files and folders in a specific directory: 1. If C:\Logs\*.* [Modified-Date]>=7 days 1a. rename *.* to *-%date%.* #where %date% is the files [Modified Date] + 30 days. 1b. move renamed file to C:\Old-Logs\ 2. If C:\Old-Log...