HEY ALL..
I need a Script or Batch file that can do the following ....
I have say 100 uniquly named files in one directory named ( lock.dat lock1.dat lock2.dat ) and so on...under c:\lock_files\
I need to copy these files to another directory on the same PC c:\lock_upload\
What I need is the script/Batch to move on of the 100 unique files at a time to the destination dir \lock_upload\
buy move it as a new file name lock.dat
then I need the process to wait either a defined time for the next move, or identify if the Lock.dat file exists in the destination dir
then move the next file as lock.dat and so on until all files have been moved as lock.dat to the destination dir.
if no files are left to copy just wait until there is then start again. / or exit .. Until I start it manually again.
I need it like this, as I have 10000 lines of txt that require uploading into a data base, that scans every one min for the lokc.dat file, as the process takes a long time, I split the files up to process them more quickly, but it is entirly painful moving them manually each time.
Please help.



Help
Back to top









