使用ParamStr获得参数, 而ParamCount则可以返回有多少个参数, 以下是Delphi
关于这两个函数的说明,Delphi帮助对这两个函数都有例子
function ParamStr(Index: Integer): string;
Description
ParamStr returns the parameter from the command line that corresponds
to Index, or an empty string if Index is greater than ParamCount.
For example, an Index value of 2 returns the second command-line parameter.
ParamStr(0) returns the path and file name of the executing program
(for example, C:/TEST/MYPROG.EXE).
function ParamCount: Integer;
Description
ParamCount returns the number of parameters passed to the program on
the command line. Separate parameters with spaces or tabs. Use double
uotes to wrap multiple words as one parameter (such as long file names
containing spaces).