You could use the Oracle or any database to provide you a unique number. Not sure if the performance degradation associated with hitting the database for every file move would be a concern here.
Using a map is prob best but something like this might work in a batch file....
set d_yy=%date:~10,4%
set d_mm=%date:~4,2%
set d_dd=%date:~7,2%
set t_hh=%time:~,2%
set t_mm=%time:~3,2%
set t_ss=%time:~6,2%
set DtTmStmp=%d_yy%%d_mm%%d_dd%%t_hh%%t_mm%%t_ss%
set FileOut=E:\Mercator6.7\cmgr\mmgr\mail\%DtTmStmp%mi.edi
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.