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: NT Script

RE: NT Script

From: Guidry, Chris <chris.guidry_at_atcoelectric.com>
Date: Mon, 18 Jun 2001 12:35:43 -0700
Message-ID: <F001.0032DBE5.20010618123104@fatcity.com>

Hello,
If you want to do this in a .BAT or .CMD file then:

for /f "tokens=2-4 delims=-/ " %%i in ('date/t') do set filedate=%%i%%j%%k rename <filename> export%filedate%.exp

HTH

--
Chris J. Guidry  P.Eng.
ATCO Electric, Metering Services
Phone: (780) 420-4142
Fax: (780) 420-3854
Email: chris.guidry_at_atcoelectric.com


> -----Original Message-----
> From: Kevin Kostyszyn [SMTP:kevin_at_dulcian.com]
> Sent: Monday, June 18, 2001 11:12 AM
> To: Multiple recipients of list ORACLE-L
> Subject: NT Script
>
> Hello all,
> I know, I know, NT. Anyway, I was wondering if anyone knew how to
> append
> the system date to a file created through a script. Basically, what I
> want
> to do is have files set up to run exports every night, however, I need to
> be
> able to appened the system date to the file when it is created so I don't
> just over write the file that was created the night before. Does anyone
> know how to do this, it would be greatly appreciated!!
>
> Sincerely,
> Kevin Kostyszyn
> DBA
> Dulcian, Inc
> www.dulcian.com
> kevin_at_dulcian.com
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Kevin Kostyszyn
> INET: kevin_at_dulcian.com
>
> 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: 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.com -- Author: Guidry, Chris INET: chris.guidry_at_atcoelectric.com 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: 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 Mon Jun 18 2001 - 14:35:43 CDT

Original text of this message

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