I have a batch file that asks the user for 2 inputs. A text file is then created/updated which includes the entries the user has entered. These entries need to be of a specific format.
i.e. (FIRST INPUT) letter, letter, number number,space,number,letter,number,number,number, space letter,letter.
e.g. AB52 7L056 TA (all letters need to be in upper case)
(SECOND INPUT) Letter,letter,letter,number,letter,space,(then 11 numbers).
e.g. EBH9E 12323405432
I also need to limit the input so there is no space entered at the end of each input. My code so far is:
@echo off
@echo This is a test :> dblank.txt
SET /P someVar=[Please enter STRING and press ENTER]
@echo [THIS IS THE STRING ENTERED] %someVar% >> dblank.txt
@echo This is another TEST :>> dblank.txt
SET /P someVar2=[Please enter NEXT STRING and press ENTER]
@echo [THIS IS THE SECOND STRING ENTERED] %someVar2% >> dblank.txt
@echo DOES IT WORK ???>> dblank.txt
Could someone help with this? Many thanks in advance.