Note: This works on Win2k.
SET MyDate=%DATE%
SET sMONTH=%MyDATE:~4,2%
SET sDAY=%MyDATE:~7,2%
SET sYEAR2=%MyDATE:~12,2%
SET sYEAR4=%MyDATE:~10,4%
domlist sys%sMONTH%%sDAY%.txt

Note: You can set MyDate another way...
FOR /F "tokens=1*" %%A IN ('date /T') DO SET MyDate=%%A %%B


Arthur Donchey

V.P.Griffen & Assoc. L.L.C.
http://www.vpga.com
[EMAIL PROTECTED]

Skyline Internet Inc.
http://www.skylineinternet.com
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Craig Gittens
Sent: Friday, February 16, 2001 10:41 AM
To: IMail_Forum@list. ipswitch. com
Subject: [IMail Forum] month/day


Anyone have any idea how I can get a batch file to insert a month/day format
in sysxxxx.txt so I can schedule it to run daily?

e.g. domlist.exe sysxxxx.txt

Any help appreciated,

Craig


Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/



Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Reply via email to