dos_compilers/Borland Turbo Pascal v3/CMDLINE.PAS
2024-07-03 16:09:46 -07:00

28 lines
636 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

program CommandLine;
{
COMMANDLINE PARAMETERS DEMONSTRATION PROGRAM Version 1.00A
This program gets parameters from the command line:
INSTRUCTIONS
1. Load the TURBO compiler and compile to a .COM file
2. Quit the TURBO compiler and execute the program with
parameters. Try:
cmdlin abc def
cmdlin Greetings from Frank Borland!
cmdlin
NOTE: For information about these functions, please refer to your
TURBO 3.0 Reference Manual.
}
var
i : integer;
begin
for i := 1 to ParamCount do
writeln(ParamSTR(i));
end.