Put this in a batch file

for /f "tokens=2-4 delims=-/ " %%i in ('date/t') do set filedate=%%i%%j%%k
exp / file=<SID>exp_%filedate%.dmp

On my machine this gives "YYYMMDD" but it all depends on the date
format setting in the control panel/regional settings. You may also
change the order of i, j, k above to achieve the necessary result.

--
Chris J. Guidry  P.Eng. EE
ATCO Electric, Metering Services
Phone: (780) 420-4142
Fax: (780) 420-3854
Email: [EMAIL PROTECTED]


> -----Original Message-----
> From: Gene Sais [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 21, 2002 03:24 PM
> To:   Multiple recipients of list ORACLE-L
> Subject:      Re: Appending date to export file name in NT
> 
> exp / file=<SID>exp_%DATE%.dmp  
> 
> >>> [EMAIL PROTECTED] 05/21/02 04:43PM >>>
> 
> 
> Hi Everyone,
> I can easily append the date to my export file names in unix. Can anyone
> tell me how to do on NT.  An example would be great!  I've had very little
> NT experience. Thanks for any help.
> Shirley :-)
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com 
> -- 
> Author: Taylor, Shirley
>   INET: [EMAIL PROTECTED] 
> 
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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).
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: Gene Sais
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Guidry, Chris
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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