Automatically copy camera photos from storage devices

This task automatically copies camera photos from any storage device - for example a USB stick, a CD, a memory card or even a network drive - as soon as it is inserted or connected. All JPG files in a DCIM-folder in the main directory of the device are copied to a directory named after the current date and time. If no DCIM-folder exists the task will not perform any action.

What you need

  1. Retrieve newly added volumes and drives
  2. Retrieve folder contents
  3. Filter files and folders
  4. Search files and folders
  5. Retrieve current date and time
  6. Copy files and folders

Setting up the workflow

The task is to be executed as soon as at least one storage device has been inserted or connected. The "Retrieve newly added volumes and drives" action is used to determine which storage device this was. The prerequisite for this is that the task was started by the event "When volumes are inserted or drives are connected". Otherwise, the list returned by the action is empty.

The event "When volumes are inserted or drives are connected" must be enabled
The event "When volumes are inserted or drives are connected" must be enabled

After having determined the device one has to check if there is a DCIM-folder on it. In Task Till Dawn, storage devices can be handled like folders, in this case all files and folders in the main directory can be retrieved using the "Retrieve folder contents" action. I named the return variable "All files of the root directory". It is then filtered using the "Filter files and folders" action, leaving only the DCIM-folders, if any, which are stored in the "DCIM-folders" variable. These can then be searched for JPEG files using "Search files and folders" action. I have specified several file extensions as filters because they can be case-sensitive. You can add more file extensions to the list as you wish.

The last step is to copy these files to a target directory. To avoid chaos, a new folder with the current date and time should be created for each copy operation. To be able to do so, the "Retrieve current date and time" action is used to store the current date and time in a variable.

Now the copying process can be started. In the example, a folder on the local hard disk followed by the current date and time variable is specified as the target directory. The folder will be created automatically by Task Till Dawn, if it does not already exist.

Example workflow to have camera photos automatically copied from storage devices
Example workflow to have camera photos automatically copied from storage devices

Comments (0)

Leave a comment, if you want to!
Marked fields (*) are mandatory.

Will not be published
By ticking this checkbox you agree to the storage of your data by this website. In order to be able to display comments this website stores the specified name, e-mail address, the specified website, the comment text as well as the time stamp. If you wish, you can have your comments deleted later. For detailed information, see my privacy policy.