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: <Jared.Still_at_radisys.com>
Date: Wed, 24 Sep 2003 17:04:40 -0800
Message-ID: <F001.005D0F69.20030924170440@fatcity.com>


And people say Perl is cryptic.

Wolfgang Breitling <breitliw_at_centrexcc.com> Sent by: ml-errors_at_fatcity.com
 09/24/2003 11:59 AM
 Please respond to ORACLE-L  

        To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
        cc: 
        Subject:        Re: how to generate unique file names on Windows.


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).



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: Jared.Still_at_radisys.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 - 20:04:40 CDT

Original text of this message

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