Skip to main content

Novice question (my DOS days are very, very far behind me). I am trying to copy files (photo's) from one location to the other using system caller. The problem I encounter is that only the first photo get's copied. I use this line in the systemcaller:

 

F: && cd F:\\folder\\photos\\ && md 10122019location && copy F:\\projects\\2019\\location\\drone\\fotos\\\\DJI_0503.JPG F:\\folder\\photos\\10122019location\\DJI_0503.JPG

 

Of course the photo name changes for every photo I want to copy using @value(photofilename), but it only copies the first photo. How do I copy all?

 

I do not want to copy all photo's in the source folder, else I could use *.JPG.

Why not use the File Copy Writer?

If you want to use the SystemCaller you can just use the copy command.

COPY "C:\my work\some file.doc" "D:\New docs\newfile.doc"

Generate this commandline for each file and run it.


Why not use the File Copy Writer?

If you want to use the SystemCaller you can just use the copy command.

COPY "C:\my work\some file.doc" "D:\New docs\newfile.doc"

Generate this commandline for each file and run it.

Thank you!

I endend up fixxing it by generating a long line with path\filenames seperated by &&. That also worked. I'll try your suggestion as well just to learn something new.


Reply