Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Bat script to detect if a file .jpg finish downloading  (Read 3013 times)

0 Members and 1 Guest are viewing this topic.

alex5213

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Windows 7
    Bat script to detect if a file .jpg finish downloading
    « on: October 14, 2015, 06:26:43 PM »
    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 !


    Squashman



      Specialist
    • Thanked: 134
    • Experience: Experienced
    • OS: Other
    Re: Bat script to detect if a file .jpg finish downloading
    « Reply #2 on: October 14, 2015, 08:17:54 PM »
    Another option is to check the file size and see if it changes.
    http://www.robvanderwoude.com/type.php#ShowSize