|I am using a batch file within a program that passes special variables to the batch file.|
I want to use one of these variables to rename a file but I only want part of that variable.
Variable passed to batch file from program:
I want to rename a report that the program outputs:
ren \\%COMPUTERNAME%\ITE2\reports\%USER%\cir125.report cir125_%SUBSTR%.report
I would like to know how I can get the string between the last \ and .txt and set it to SUBSTR
The length of the name of the txt file is almost always different.
Thanx in advance for any help you can provide...:)