Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: how to generate unique file names on Windows.

Re: how to generate unique file names on Windows.

From: Wolfgang Breitling <breitliw_at_centrexcc.com>
Date: Wed, 24 Sep 2003 10:59:52 -0800
Message-ID: <F001.005D0F18.20030924105952@fatcity.com>


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/Claritas_at_claritas.com
>
>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: ListGuru_at_fatcity.com (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: breitliw_at_centrexcc.com

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: ListGuru_at_fatcity.com (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).
Received on Wed Sep 24 2003 - 13:59:52 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US