#1 : 24/03-17 23:20 Michael
Posts: 1
|
My apologies if I am missing it in the documentation somewhere but I am unable to locate it.
Goal: Rename a file based on a value within the file name. Basically I would like to use criteria. WHERE FileName LIKE (*_223_*) THEN prepend Agent1 OR WHERE FileName LIKE (*_108_*) THEN prepend Agent2 OR WHERE FileName LIKE (*_600_*) THEN prepend Agent3 Example 1: Before: 2017-03-22T070740_CallFrom_223_To_6033962875.WAV After: Agent1_2017-03-22T070740_CallFrom_223_To_6033962875.WAV Example 2: Before: 2017-03-22T071230_CallFrom_108_To_7576925652.WAV After: Agent2_2017-03-22T071230_CallFrom_108_To_7576925652.WAV Example 3: Before: 2017-03-22T061611_CallFrom_5035551212_To_600.WAV After: Agent3_2017-03-22T061611_CallFrom_5035551212_To_600.WAV |
#2 : 25/03-17 22:56 G. Lambany
Posts: 187
|
Reply to #1:
Try this script: http://pastebin.com/j9LgQDJK you can add as much search string/prefix to the array as you want cheers |