On Tuesday, January 06, 2004 at 03:40:16, [EMAIL PROTECTED] confabulated:
> OK, this is for you batch file wizards out there. I could do this in bash
> with no problem but DOS is ornery about date strings.

> I move my logs (declude and IMail) off to a workstation that I use for
> scanning the logs. I can't log directly to the workstation because I work
> contract and frequently pack the box up and haul it to another job
> temporarily.

> I'm trying to create a DOS batch file that I can have run nightly that will
> use MOVE to move the files to the workstation drive (I have it mounted on
> the mail server with a drive letter for file moving ease).

> Problem is, I can't figure out how to make it move everything EXCEPT the
> current day's log files (sys####.txt and dec####.log). The DOS date command
> won't give me a clean "month+day" number to work with and the unix tools
> set doesn't seem to give a unix style date command to use for getting dates
> in the proper format.

Have you ever tried using RoboCopy? There is a download for it. I'm
not quite for sure where. It is also on the Win2000 Server resource
kit CD if you have that. There is a switch you can use that will copy
files where you can exclude files older/newer than a specified date.

I use it to mirror another mail system we use to another server for
backup incase the primary goes down. It works extreamly well.

Or if someone else has another better suggestion, I'm all ears.

> If I can get around the date problem I should be able to use 'move' or
> 'xcopy + del' to move the files I need over to the other box.

> Any help appreciated.



To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to