Package DOS batch file

Package - Windows DOS batch file

The Package batch file was created to facilitate the final stage of delivery. Once all editing has been completed, the final images are exported to a folder on the Desktop. The exported folder is then dragged to the Package batch file, also on the desktop.

  • Runs JpegCleaner against the incoming folder.

  • Launches the 7z.exe, the ‘a’ command adds all the files to %1.zip. %1 is a variable that uses the dragged file name and location to create the ZIP file. -sdel command deletes the original folder.

  • Work out if this batch file has been run on the Laptop or the PC then launch the required move command

  • Move the ZIP archive file to the Dropbox location.

  • Start the Dropbox application whether it is running or not.

  • The batch file then auto quits.

Basically once the folder has been dragged to the batch file I go and make a cup of tea. By the time I come back the package is ready in the Dropbox folder, the link can now be sent to the client.

In future, I could look at having Capture One export to a predefined area, then the batch file could target that location and I would not have to drag and drop the folder.