I do not remember exactly when I bought my first computer, but it should be around 1984 or 1985; it was a PC clone Printaform computer that showed MS-DOS 2.11 with batch files executed by command.com. I vividly remember that the Batch functions of this time were enough to write many interesting programs. He controlled the variable using the SET command and replacing the value with %variable% , and the FOR , IF and CALL commands, including recursive routines.
Soon after, I read an article in the journal Dr. Dobb Journal, which shows how to change the command.com environment variables from a running program, so I wrote my first program of this type, LET.COM, which allowed me to perform advanced control of variables in batch files, for example, arithmetic operations, data entry, etc. .d. many years before the modern functions of the batch file cmd.exe.
You can view the history of MS-DOS development, including the functions of a batch file, on many sites on the Internet, for example this one on Wikipedia .
source share