Dear All,
for /f "tokens=2,3,4 delims=/ " %%a in ('date /t') do set fdate=%%a%%b%%c
for /f "tokens=1,2,3,4,5 delims=: " %%a in ('time /t') do set ftime=%%a%%b%%c%%d%%e
exp userid=HR/HR@dummy file=C:\BACKUP\backup%fdate%%ftime%.dmp log=C:\BACKUP\backup%fdate%%ftime%.log
This scripts works fine but my requirement is when this script run it should make a folder its name should be current hour. i.e
if time is 5 o clock the the name of folder should be 5 and when hour is 6 then the name of the folder should be 6.
Any idea how to achieve this.