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 ?
Phil Robyn wrote:
> Joe Caporina wrote:
>
>> I'll try the German setdate.com . I'll look into datetime.bat. I already >> think there is a problem using datename. bat when exporting files to be >> renamed current date. Using setdate makes it easy. >> 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 >> Thx Joe
Typo alert: should be
2. 'date /t') do set TODAY=%%a
> 3. set TODAY=%TODAY:/=%
> 4. set TODAY=%TODAY:~6,2%%TODAY:~0,4%
> 5. for /f "tokens=5-6 delims=.: " %%a in (
> 6. 'echo.^|time^|find "urrent"'
> 7. ) do set HR=%%a&set MIN=%%b
>
-- t o s e n d e - m a i l u s e ' R e p l y - T o ' o r u n z i p m y ' F r o m ' a d d r e s s ....Received on Wed Oct 09 2002 - 17:04:14 CDT
![]() |
![]() |