Hello everyone:
How can the function of reading a property file or options file be implemented under DOS?
There are generally the following 3 ways to read options in DOS:
1. Set environment variables in advance, and reference the environment variables in commands
2. Use the built-in command-line parameter reading function of certain commands themselves
3. Read a specified config file / options file / property file, and extract variable values from it
The first two cases are relatively easy to handle, but how can case 3 be implemented?
I'm asking the experts, seniors, and friends in the DOS world for advice. Please share your opinions! Thanks!
How can the function of reading a property file or options file be implemented under DOS?
There are generally the following 3 ways to read options in DOS:
1. Set environment variables in advance, and reference the environment variables in commands
2. Use the built-in command-line parameter reading function of certain commands themselves
3. Read a specified config file / options file / property file, and extract variable values from it
The first two cases are relatively easy to handle, but how can case 3 be implemented?
I'm asking the experts, seniors, and friends in the DOS world for advice. Please share your opinions! Thanks!
