by truth » Fri Jan 24, 2014 11:11 am
BRU wont read a file's content, seeking rename criteria.
'Exceptions' are file-attributes & exif-values (slowing performance if not needed).
Sed is well-suited for this, but most seem to prefer graphical apps.
Without sed, I'd probably resort to something like:
For /f "delims=: tokens=1,3" %F in ('findstr /r /c:"^X-MDRcpt-To: .*@" *.msg') do REN "%F" "%G - (%~nF)%~xF"
Sed is a LOT faster/cleaner: quits file-reading once text is found (if desired), spaces no concern, etc.
Sorry, I've no experience using graphical apps for this, hopefully someone will have a recommendation.
Apps that file-read like this should let users configure how far into each file should be read (before giving up)
and set what action(s) should be taken after a 1st-occurence is found.
Last edited by
truth on Fri Jan 24, 2014 11:50 pm, edited 1 time in total.