CMDLINE.PAS 636 B

12345678910111213141516171819202122232425262728
  1. program CommandLine;
  2. {
  3. COMMANDLINE PARAMETERS DEMONSTRATION PROGRAM Version 1.00A
  4. This program gets parameters from the command line:
  5. INSTRUCTIONS
  6. 1. Load the TURBO compiler and compile to a .COM file
  7. 2. Quit the TURBO compiler and execute the program with
  8. parameters. Try:
  9. cmdlin abc def
  10. cmdlin Greetings from Frank Borland!
  11. cmdlin
  12. NOTE: For information about these functions, please refer to your
  13. TURBO 3.0 Reference Manual.
  14. }
  15. var
  16. i : integer;
  17. begin
  18. for i := 1 to ParamCount do
  19. writeln(ParamSTR(i));
  20. end.
  21.