|
Answer» I have a software under windows 7 that automatically check EVERY 3 seconds if my digital camera have new images taken if it found it this software automatically download the last PICTURE from my camera and put under a hotfolder.
I make a script that every 3 seconds automatically check if a new image is found inside this hotfolder, copy this image to another folder and delete the hotfolder image to keep the hotfolder always empty.
Everything is running fine but when my script runs at the same time when the other software are copying the image from my camera the resulting copied file is incomplete.
I was looking for a piece of script that i can ADD to my .bat file that check if the image (*.jpg) file inside the hotfolder is complete and then copy the file from the hotfolder to another
Thanks in ADVANCE for your advice ! http://stackoverflow.com/questions/10518151/how-to-check-in-command-line-if-a-given-file-or-directory-is-locked-used-by-any/10520609#10520609Another option is to check the file size and see if it changes. http://www.robvanderwoude.com/type.php#ShowSize
|