I export a file to a directory with this batch;
exp dba_opr/exp_backup full=y rows=n
file=d:\oracle\admin\PDS\exp\pdsexp_test.DMP
LOG=d:\oracle\admin\PDS\exp\pdsexp_test.LOG
Then I run this batch to rename the file with a timestamp;
set time_stamp=.
set today=%yy%%mm%%dd%
FOR /F "tokens=1-3 delims= " %%A in ("%date%_%time%") do set
time_stamp=%%B%%C
FOR /F "tokens=1-3 delims=/" %%A in ("%time_stamp%") do set
time_stamp=%%A%%B%%C
FOR /F "tokens=1-3 delims=:" %%A in ("%time_stamp%") do set
time_stamp=%%A%%B%%C
FOR /F "tokens=1-2 delims=." %%A in ("%time_stamp%") do set
time_stamp=%%A%%B
D:\oracle\admin\PDS\exp\pdsexp%TODAY%_%HH%_%MN%.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 =-----