Link to home
Start Free TrialLog in
Avatar of icsbudapest
icsbudapestFlag for Hungary

asked on

Batch rename Word (.doc) files based on first line of text

I have recently recovered a large amount of "lost" data from a drive, but was unable to recover the files with their proper names. (The recovery software just named them 0000A0A0.DOC, 0000A0A1.DOC, 0000A0A3.DOC...)
There are over a thousand documents, so I would like to rename the file with text extracted from the document itself. I was thinking, from the first line of text. This would making sorting much easier.
Does anyone know if this is possible with a batch file or something?
Avatar of Joanne M. Orzech
Joanne M. Orzech
Flag of United States of America image

Well here's one from one of our MVPS
http://gregmaxey.mvps.org/Batch_Rename_Files.htm

Also....you'd have to modify this one as well
http://support.microsoft.com/kb/139724
ASKER CERTIFIED SOLUTION
Avatar of Shift-3
Shift-3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of icsbudapest

ASKER

The script seemed to work well. Thank you. Just what I needed. (It may take all day to run it, but will be a time saver in the long run.)