Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Renaming files from txt within file
Name: arvindr72 Date: May 27, 2009 at 03:22:51 Pacific OS: Windows XP Subcategory: Batch
Comment:
Please help! I want to rename hundreds of files from my local directory by getting a string of text from the file. For example: Filename: tsa012835182.txt I want to rename it to include the text from within the file. The file contains several lines of text 15-05-09 003094 0610 15-05-09 003094 0715 15-05-09 003094 1715 15-05-09 003094 1807 I want to get 15-05-09 the first line in column 1, and then rename it as the name of the file. The final filename should look like: TSA01-14-05-09.txt Then proceed with the next file. The 15-05-09 text is different in each file but in same location (column 1).
The final filename for this one should look like: tsa0115-05-09.txt
Summary: Please help! I want to rename hundreds of files from my local directory by getting a string of text from the file. For example: Filename: 00401420.lcc I want to rename it to include the text from w...
Summary: I'm trying to read single lines from a text file and store each line in a variable so that I can use that variable to do something (such as COPY, RENAME, MOVE, etc). Here is the operation I want: 1) R...
Summary: Hey All the files that I want to rename are in the same folder. Does it matter if the one file name reappears several times? For example, I have a file called A and it applies to several records, but ...