I often copy file descriptions from one file to another. I wrote a REXX script for that purpose several years ago. I'd like to replace the Rexx script with a BTM, but I'm having a problem.
My initial attempt:
It strips the quotes. An alternative version copies the quotes using piping:
By using SETDOS /C~ I was even able to copy descriptions containing ampersands.
THE PROBLEM -- I'm unable to copy a description to several files. For example,
only adds the description to a single file (apparently the first match found).
I'm not sure why this doesn't work. Does anyone have any suggestions?
My initial attempt:
describe target_file /D"%@descript[source_file]"
It works with an unacceptable limitation. It will not copy descriptions that contain double quotes, such as: Dave Brubeck "Blue Rondo a la Turk"It strips the quotes. An alternative version copies the quotes using piping:
echo %@descript["source_file"] | describe "target_file"
By using SETDOS /C~ I was even able to copy descriptions containing ampersands.
THE PROBLEM -- I'm unable to copy a description to several files. For example,
echo %@descript["source_file"] | describe "ambiguous_target_file*"
only adds the description to a single file (apparently the first match found).
I'm not sure why this doesn't work. Does anyone have any suggestions?