Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Is NT 2000 Dos Batch Timestamp sysntax different ?
Migrated from NT4 to NT2000 and the batch for setdate/time varables are not
comaptible with NT2000 DOS , Does anyone know where to get an updated
setdate shareware or there any work arounds if not available.
the DOS batch file to setup timestamp: d:\oracle\admin\PDS\script\setenv.bat
the export batch file which calls setenv.bat: d:\oracle\admin\PDS\script\exp.bat and exp1.bat
contents of exp.bat:
cd/d d:\oracle\admin\PDS\script
setdate >setenv.bat
call setenv.bat
call exp1.bat
sendmail -t user_at_company.com -f parapp06 -s "PARAPP06 CHECK - PDS" -b \\parapp06.pap.starent.com\d$\oracle\admin\PDS\exp\pdsexp%TODAY%_%HR%_%MIN%. LOG contents of exp1.bat:
exp dba_opr/exp_backup full=y
file=d:\oracle\admin\PDS\exp\pdsexp%TODAY%_%HR%_%MIN%.DMP
LOG=d:\oracle\admin\PDS\exp\pdsexp%TODAY%_%HR%_%MIN%.LOG
contents of setenv.bat; Uses setdate.com shareware
SET TODAY=021009
SET YR=02
SET MTH=10 SET HTH=22 SET DAY=09
SETDATE.DOC Version 1.C 1994.12.29 ÄÄÄÄÄÄÄÄÄÄÄ ÄÄÄÄÄÄÄÄÄÄ
No change in this documentation is permitted beyond the ==== line above.
sample data:
YR MTH DAY HR MIN SEC HTH DOW DL TODAY DFS LY NY TDAY UDAY CM CD WOY NM P4 3 8 P5 720 880 AD5 1 AD3 -30 =
Those variables that the user wants to have in his environment are found
before the first "=" sign at the start of this file. SETDATE.COM reads
this documentation file to determine which of the variables is required
unless one parameter is used, see SETDATE.TXT.
The set of possible variables is:
YR MTH DAY HR MIN SEC HTH DOW D3 DL TODAY TMTH UMTH DFS DTE WOM NS LY NY CENT TH UH TM UM TS US THU UHU 12H TDAY UDAY CM CD WOY NM MX P0, P1..P9 AD0, AD1..AD9
Further details and examples are in the SETDATE.TXT file.
Name Original Packed Ratio Date Time Attr Type CRC
SETDATE.TXT
10491 4252 40.5% 94-12-29 23:06:00 a--w -lh5- 1224
There is no fee for this program, but copyright remains with the author.
No change is allowed to the program or documentation (beyond that
described above). If you feel inclined to send a postcard, it would
be appreciated. Suggestions welcome.
DISCLAIMER Fitness for purpose is determined by the user. The author is not liable
for any incidental, consequential, direct or indirect damages caused by
use of this program. Whoever uses the program, whatever his age or mental
capability, bears all risk as to the performance of the software.
Geoff Cutter
203 Como Pde East
Parkdale
Australia 3195
#
"Phil Robyn" <zipprobyn_at_uclink.berkeley.edu> wrote in message
news:3D9CBD24.4000203_at_uclink.berkeley.edu...
> Joe Caporina wrote:
> > Why is the batch file that I use with NT 4 server OS to import logs
assign
> > timestamps to the log not working with NT2000 Server OS?
> > The log file does not change names with the date and just gets
overwritten.
> > cd/d d:\oracle\admin\int2000\script
> > setdate >setenv.bat
> > call setenv.bat
> > call intexp1.bat
> > sendmail -t esdbsecurity_at_alliance.com -f parsat01 -s "PARSAT01 CHECK -
> > INTELATRAC" -b
> > \\parsat01\d$\oracle\admin\int2000\exp\intexp%TODAY%_%HR%_%MIN%.LOG
> >
>
> >
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World! -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =----- Received on Wed Oct 09 2002 - 14:34:00 CDT
![]() |
![]() |