ParamStr - Run Delphi Application with Command line paramaters

ParamStr(ParamIndex : integer) The ParamStr function returns one of the parameters from the command line used to invoke the current program. The ParamIndex parameter determines which parameter is returned: 0 : The execution drive/path/program name. Returns same as Application.ExeName. 1 : Return the 1st parameter 2 : Return the 2nd parameter ... If there is no parameter value for the given index,an empty string is returned. // Before running this code, use the Run/parameters menu option // to set the following command line parameters : -parm1 -parm2 ParamCount() The ParamCount function gives the number of command line parameters used to invoke the current executable. While application is running, the parameters are available to us. so we can retrieve them within a specific section of the application (usually from the OnActivate event handler of the main form). We ca...