Create Unique number from a date & time
Posted on 2001-06-11
We are scanning enrolment forms with VB software we have written. currently our files are named;
S:\studentRef\studentRef x nextIndex .jpg
As we have scanning sites out of our physical network its possible that the same filename will occur. We have written software to syncronize the directories so not to overwrite any files ... essentially to increment the index until a valid one is found in the directory.
We've found this to be a slow process as we will be dealing with over 25 thousand directories at the end of each year.
Our idea is to create a unique number from the date and time to eliminate this problem.
So, can someone supply us with some fancy code to create a number generated from the date and time?
or provide a better solution.