Renaming a Word document and saving its filename with its first 10 letters -
I have recovered using software called Fotorik from corrupted hard drive can write documents. The problem is that names of documents can not be recovered; All of them have been named according to serial numbers. There are more than 2000 documents to sort through and I was wondering if I can rename them using some automated process.
Is there a script that I can use to search the first 10 characters in the document and change its name with it? It will be able to cope with many documents similar to the earlier documents and therefore should not write the documents with the same name. In addition, it is to avoid changing the name of the document with invalid characters (like '?', '*', '/', Etc.)
I have only a little bit of Python, C Experience, and even less in Linux with Bash programming, bear with me if I do not know what I'm doing if I have to write a new script.
How about VBSPT? Here is a brief description:
FolderName = "C: \ Documents \"
Set FS = CreateObject ( "Scripting.FileSystemObject") set Fldr = fs.GetFolder ( FolderName) Set ws = CreateObject ("Word.Application") for each F. fldr.Files if left (f.name, 2)
Comments
Post a Comment