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.

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.

-- 
Gerald V. Livingston II

Configure your Email to send TEXT ONLY -- See the following page:
http://expita.com/nomime.html



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