How do I write a variable value to a text file within a dos batch script?
(Y, JJJ, SERL, and SERIAL are variables in the batch file)
I tried the following:
set SERIAL=%Y%+%JJJ%+%SERL%
%SERIAL% > VAR_1.TXT
%T% > VAR_2.TXT
%A% > VAR_3.TXT
%SERL% > VAR_4.TXT
The files VAR_!.txt, VAR_2.txt, VAR_3.txt, VAR_4.txt are created, but they are empty (0 bytes).
I know this has a simple solution, but it has been 20+ years since I played with batch files (VERY rusty!)
THANKS!