script to rename file based on a string in the first line
Posted: 28 May 2008 09:20
I need to write a batch file that will rename a file based on a string in the first line of the file (a header).
The routine will need to move to a certain position in the first line and read in the next, say 12 positions, into a variable, then name the file based on the string value that was passed to the variable.
The routine will need to move to a certain position in the first line and read in the next, say 12 positions, into a variable, then name the file based on the string value that was passed to the variable.