I am trying to use a batch file to read the 1st line in a text file and save it as another file. I need to extract the 5th character from the 1st line and store it as another text file.
Problem is the 1st line in the text has a space in it and the entire content in the line does not store into the variable.
for eg. if my 1st line in the text has abcd : 1234
I need to read the content as 1234 and save this as 1234.txt file. Is this doable?