for /F "tokens=2,3,4 delims=/ " %I in ('date /t') do @set today=%K-%I-%J

example:
c:\>date /t
Wed 09/24/2003

c:\>for /F "tokens=2,3,4 delims=/ " %I in ('date /t') do @set today=%K-%I-%J

c:\>echo %TODAY%
2003-09-24

c:\>


At 09:44 AM 9/24/2003 -0800, you wrote:


Hello,

I am trying to write a script on windows that would export the db every
night. Can someone tell me how to generate unique file names on windows...

What I am looking for is the windows equivalent of echo `date +%m%d%y`

Thanks in advance.

Murali.


-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: INET: Murali_Pavuloori/[EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Wolfgang Breitling Oracle7, 8, 8i, 9i OCP DBA Centrex Consulting Corporation http://www.centrexcc.com


-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Wolfgang Breitling INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to