Is it possible for Bulk Rename Command to read and rename a line from a .txt file and then saves it?
The reason is because I have a batch file that writes the path and file name of a newly created file in a folder (it is always one file at a time), which is a temp file for a running download, the line looks like this:
- Code: Select all
D:\Temp\53 - Bdownloader_2019-07-02_21-00-21.rar-{ea57c4d9-b2b6-4c74-90f3-0507f0c5e5b6}.dtapart
And then i have another batch file that sends this line to an email, but i want to rename this line first before emailing it by removing these parts: "D:\Temp\" and "-{ea57c4d9-b2b6-4c74-90f3-0507f0c5e5b6}.dtapart"
I think the part after ".rar" always has the same number of random characters including extension which is 47
To simplify it:
1- Download starts, temp file created.
2- A batch file detects temp file, creates a .txt file of filename and path.
3- Another batch file reads line from .txt file and sends to an email.
All i want is to have that line renamed before sending it as i mentioned above.