Thank you Marcel, one more question:
the statement: dgate "--imagelister:local|*||dgate --modifypatid:FMI*,%s" > t.bat
will produce a t.bat file that will change all patid on all images to "FMI*" literally. What I want is the patients ID to be changed to the same number with a FMI in front.
So 1234 will change to FMI1234. Can you help me rewrite the statement to do that?
Would this work? Or am I still missing it?
update: I tried the above code and it did not work, the t.bat file did not contain the file names...
I also tried
That produced a bat file that looks like: dgate --modifypatid:FMI(0010,0020),F:the file name.
I tried it just to see and it produces 100% **File to modify does not exist or is not on a MAG device error.
Ok, I'm open to suggestions, I'm still not sure how to structure this command.