Worked like a charm, thanks Shawn. Steve -----Original Message----- From: Quillman Shawn (RBNA/CSA1) * [mailto:Shawn.Quillman@xxxxxxxxxxxx] Sent: Wednesday, July 07, 2004 12:40 PM To: [ISAserver.org Discussion List] Subject: [isalist] RE: OT: %date% http://www.ISAserver.org Ok, it's a bit of a hack but it works (assuming you can run a vbs script from where you are). In the same folder as your batch file create a vbs script (df.vbs for example) containing: newdate = replace(mid(wscript.arguments(0),5),"/","") wscript.echo left(newdate,4) & right(newdate,2) Then in your batch file do this: for /f "Tokens=*" %%I in ('cscript /nologo df.vbs "%date%"') do set NewDate=%%I The %NewDate% variable will have your formatted date. -Shawn ----- Shawn R. Quillman Robert Bosch Corporation RBNA/CSA1 38000 Hills Tech Drive Farmington Hills, MI 48331 (248) 553-1164 (P) (248) 848-6969 (F) shawn.quillman@xxxxxxxxxxxx -----Original Message----- From: Stephen Herrera [mailto:sherrera@xxxxxxxxxx] Sent: Wednesday, July 07, 2004 2:36 PM To: [ISAserver.org Discussion List] Subject: [isalist] OT: %date% http://www.ISAserver.org Is there a way inside of a batch file that I can change the way that %date% outputs? I would like it to do 070704 instead of Wed 07/07/04. Steve ------------------------------------------------------ List Archives: http://www.webelists.com/cgi/lyris.pl?enter=isalist ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp ISA Server FAQ: http://www.isaserver.org/pages/larticle.asp?type=FAQ ------------------------------------------------------ Other Internet Software Marketing Sites: World of Windows Networking: http://www.windowsnetworking.com Leading Network Software Directory: http://www.serverfiles.com No.1 Exchange Server Resource Site: http://www.msexchange.org Windows Security Resource Site: http://www.windowsecurity.com/ Network Security Library: http://www.secinf.net/ Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com ------------------------------------------------------ You are currently subscribed to this ISAserver.org Discussion List as: shawn.quillman@xxxxxxxxxxxx To unsubscribe visit http://www.webelists.com/cgi/lyris.pl?enter=isalist ------------------------------------------------------ List Archives: http://www.webelists.com/cgi/lyris.pl?enter=isalist ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp ISA Server FAQ: http://www.isaserver.org/pages/larticle.asp?type=FAQ ------------------------------------------------------ Other Internet Software Marketing Sites: World of Windows Networking: http://www.windowsnetworking.com Leading Network Software Directory: http://www.serverfiles.com No.1 Exchange Server Resource Site: http://www.msexchange.org Windows Security Resource Site: http://www.windowsecurity.com/ Network Security Library: http://www.secinf.net/ Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com ------------------------------------------------------ You are currently subscribed to this ISAserver.org Discussion List as: sherrera@xxxxxxxxxx To unsubscribe visit http://www.webelists.com/cgi/lyris.pl?enter=isalist