PhotoCopy kopiert Bilddateien (jpg, jpeg, heic, mov, avi, mp4). Üblicherweise handelt es sich um Dateien, die auf einer Speicherkarte abgelegt sind und die auf die Festplatte kopiert werden sollen.
PhotoCopy läuft in der Kommandozeile unter Windows.
Zum einem normalen Kopierbefehl wie xcopy unterscheidet sich PhotoCopy wie folgt:
- Die Quelldateien werden im Quellverzeichnis und dessen Unterverzeichnissen gesucht (rekursiv).
- Die Zieldateien werden im Zielverzeichnis und dort im Unterverzeichnis
yyyy_MM_ddabgelegt.yyyy_MM_ddentspricht dem Erstelldatum der (Bild)datei, das aus den EXIF-Daten gelesen wird. Wenn EXIF-Informationen fehlen, wird das Erstelldatum der Datei verwendet.- Das Schema
yyyy_MM_ddlässt sich mit der Kommandozeilenoption-p <pattern>ändern. - Mit der Kommandozeilenoption
-esuchtPhotoCopynach einem bestehenden Zielverzeichnis, das mit dem Patternyyyy_MM_dd(oder Pattern gemäss-p) startet. Wenn ein solches vorhanden ist, dient es als effektives Zielverzeichnis, z. B.D:\Data\Photos\2022_05_02_Arosa.
- Das Schema
- Kopiert werden nur Quelldateien, die noch nicht als verarbeitet markiert sind. Standardmässig gilt eine Datei als markiert (d. h. verarbeitet), wenn sie in einer Dateiliste enthalten ist. Mit der Kommandozeilenoption
-akann dazu auch das Archiv-Flag verwendet werden. In diesem Fall wird nach dem Kopieren auf der Quelldatei das Archiv-Flag gesetzt. - Falls man das Quellverzeichnis weglässt, sucht
PhotoCopynach dem passenden Verzeichnis. Das ist das Verzeichnis\DCIMim Stammverzeichnis eines Wechseldatenträgers.PhotoCopyverwendet dazu den ersten Wechseldatenträger, der ein solches Verzeichnis enthält.
Beispiele
PhotoCopy F:\DCIM D:\Data\Photos
- Kopiert alle Dateien in
F:\DCIMund in den Unterverzeichnissen nachD:\Data\Photos\2022_05_02,2022_05_03etc. entsprechend dem Erstelldatum der (Bild)datei.
PhotoCopy D:\Data\Photos
- Sucht nach dem ersten Verzeichnis
DCIMim Stammverzeichnis eines Wechseldatenträgers (D: bis z:) und kopiert dieses nachD:\Data\Photos\....
PhotoCopy D:\Data\Photos -p yyyy-MM-dd -o -e
- Normalerweise werden bestehende Bilder im Zielverzeichnis nicht überschrieben. Mit der Kommandozeilenoption
-olässt sich das ändern. - Ausserdem werden Bilddateien in Zielverzeichnisse wie
D:\Data\Photos\2022_05_02kopiert. Mit der Kommandozeilenoption-esuchtPhotoCopynach einem bestehenden Zielverzeichnis, das mit dem Patternyyyy_MM_dd(oder Pattern gemäss-p) startet. Wenn ein solches vorhanden ist, dient es als effektives Zielverzeichnis, z. B.D:\Data\Photos\2022_05_02_Arosa.
PhotoCopy D:\Data\Photos -p yyyy-MM-dd
- Zielverzeichnisse erhalten einen Namen wie
D:\Data\Photos\2022_05_02. Die Kommandozeilenoption-pändert dieses Schema. Beispielsweise führt-p yyyy-MM-ddzu einem Namen wieD:\Data\Photos\2022-05-02.
PhotoCopy mdev:\Internal Storage\DCIM D:\Data\Photos
-
Kopiert die Daten vom per USB angeschlossenen Media Device (über das Media Transport Protocol). Das kann ein Mobiltelefon, eine Digitalkamera o. ä. sein. Das Media Device lässt sich noch besser über seinen Namen oder seine Seriennummer spezifizieren:
-
PhotoCopy mdev:Apple iPhone\Internal Storage\DCIM D:\Data\Photos -
PhotoCopy mdev:FAMYC0Q73C2D\Internal Storage\DCIM D:\Data\Photos
-
Photocopy -sources
- Zeigt eine Liste der vorhandenen Laufwerke (SD cards, Mobiltelefone, Digitalkameras), die Bilddateien enthalten. Bilddateien erwartet
PhotoCopyim VerzeichnisDCIModer in einem seiner Unterverzeichnisse.
Initialisieren
Damit PhotoCopy Dateien nur einmalig kopiert, werden verarbeitete Dateien in einer Dateiliste eingetragen. Diese Liste liegt im Verzeichnis %appdata%\PhotoCopy. Für jedes Quellmedium (Speicherkarte u. ä.) existiert eine separate Liste, die beispielsweise unter den Namen VolSerNo_4DCCF3FA.txt gespeichert ist.
PhotoCopy D:\Data\Photos -i
Mit der Option -i trägt PhotoCopy alle zu kopierenden Dateien in die Dateiliste ein, ohne jedoch effektiv etwas zu kopieren. Das ist dann sinnvoll, wenn ein Quellmedium für zukünftige Kopieroperationen vorbereitet werden soll, ohne dass die bereits bestehenden Dateien übertragen werden.
PhotoCopy D:\Data\Photos -ied
Die Option -ied führt zu einem ähnlichen Resultat. Hier jedoch werden nur die zu kopierenden Dateien in die Liste eintragen, für die bereits ein passendes Zielverzeichnis existiert. Das ist dann nützlich, wenn auf dem Quellmedium einerseits Daten gespeichert sind, die bereits über einen anderen Weg auf das Zielmedium übertragen wurden, gleichzeitig aber auch Daten in Verzeichnissen vorhanden sind, die auf dem Zielmedium noch fehlen. Wenn ich beispielsweise in den Ferien Daten auf den Notebook übertrage und diese später auf den PC kopiere, initialisiere ich den PC nach den Ferien am besten mit dieser Option, bevor ich weitere Daten ab Speicherkarte auf den PC übertrage.
PhotoCopy D:\Data\Photos -idate 12.10.2025..25.10.2025
PhotoCopy D:\Data\Photos -idate 12.10.2025..
PhotoCopy D:\Data\Photos -idate ..25.10.2025
Mit der Option -idate trägt PhotoCopy alle zu kopierenden Dateien innerhalb eines Zeitbereiches in die Dateiliste ein, ohne jedoch effektiv etwas zu kopieren.
12.10.2025..25.10.2025: Die Dateien vom 12. bis und mit 25. Oktober werden in der Dateiliste aufgenommen.12.10.2025..: Die Dateien ab dem 12. Oktober werden in der Dateiliste aufgenommen...25.10.2025: Die Dateien bis und mit 25. Oktober werden in der Dateiliste aufgenommen.
Optionen und Hilfe
Copies Photos from a source to a target directory. The source directory usually resides on a memory chip (SD card,
CF card etc.) filled by a digital camera. Does not touch the files in the source directory, except with the option
-a where the archive flag is set.
Usage: PhotoCopy <source directory> <target directory> <options>
-h -help
-sim: (sim)ulates copying files. Does not touch any file.
-c: opens the (c)onfiguration directory
-st: shows the (st)atus of the files to be copied (source/target directory, file list name, number of
files). Does not touch any file.
-sources: shows the source drives that contain images. Does not touch any file.
-al: (a)dd file (l)ist. Add an empty file list if it does not yet exist and then copy all files as usual.
Without this option a warning is shown if the file list is missing so that files are not copied
unintentionally.
-i: (i)nitialize. Fill the file list of already copied files with all files to be copied but do not copy
any file. This option should be used to mark the current files in source directory as already
processed and to copy only files that are added in the future.
-ied: (i)nitialize (e)xisting (d)irectories. Fill the file list of already copied files with all files to
be copied but only for directories, where the target directory already exists. Does not copy any
file. This option can be combined with -p. It may be used before copying files to a target, that
already contains some of the directories from another data source.
-idate: (i)nitialize by (date) range. Fill the file list of already copied files with all files to be copied
within the specified date range. Does not copy any file. This option can be combined with -p. It may
be used before copying files to a target, that already contains some of the directories from another
data source.
-p <date pattern>: sets the date (p)attern
-o: (o)verwrite existing files
-d: open last used target (d)irectory after copying files
-e: use (e)xisting target directories. If a target directory exists whose name starts with the required
date pattern, it is used as target directory.
-archive: copy files only where the archive flag is not set and set the archive flag afterwards. This is the
alternative to the file list usually used to store which files have already been copied in the past.
Examples:
PhotoCopy F:\DCIM D:\Data\Photos
- Copies all files of F:\DCIM and its subdirectories to D:\Data\Photos\2022_05_02, 2022_05_03 etc. according to
the creation date of the file (EXIF information if available)
PhotoCopy mdev:\Internal Storage\DCIM D:\Data\Photos
- Copies all files of mdev:\DCIM and its subdirectories to D:\Data\Photos\2022_05_02, 2022_05_03 etc. according to
the creation date of the file (EXIF information if available). mdev: accesses the media device by means of the
media transfer protocol (MTP).
PhotoCopy mdev:Apple iPhone\Internal Storage\DCIM D:\Data\Photos
- Copies all files of mdev:\DCIM and its subdirectories to D:\Data\Photos\2022_05_02, 2022_05_03 etc. according to
the creation date of the file (EXIF information if available). mdev:<media device name>\<path>
PhotoCopy mdev:FAMYC0Q73C2D\Internal Storage\DCIM D:\Data\Photos
- Copies all files of mdev:\DCIM and its subdirectories to D:\Data\Photos\2022_05_02, 2022_05_03 etc. according to
the creation date of the file (EXIF information if available). mdev:<media device serial no>\<path>
PhotoCopy D:\Data\Photos
- Searches for the first removable drive (D: - Z:) containing a top-level directory called DCIM and copies it to
D:\Data\Photos\...
PhotoCopy D:\Data\Photos -o -e
-o: (o)verwrite images. Usually already existing images in the target directory are not overwritten.
-e: adapt the target directory to already (e)xisting target directories like D:\Data\Photos\2022_05_02_Arosa.
Usually images are copied to target directories like D:\Data\Photos\2022_05_02.
PhotoCopy D:\Data\Photos -p yyyy-MM-dd
-p: change target directory pattern, e.g. to D:\Data\Photos\2022-05-02.
Usually targets directories get a name like D:\Data\Photos\2022_05_02.
PhotoCopy D:\Data\Photos -p yyyy\\MM-dd
- With -p you may define patterns that contain more than one subdirectories, e.g. D:\Data\Photos\2022\05-02.
PhotoCopy D:\Data\Photos -idate 12.10.2025..25.10.2025
- Initializes the file list of already copied files with all files to be copied within 12 to 25 October inclusive.
Does not copy any file. Files not falling within the specified date range are not added to the file list. They
can be copied with a normal call of PhotoCopy later.
Hilfe zu den Optionen erhält man, wenn man PhotoCopy mit -help ohne weitere Parameter aufruft.