Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
var CmdLine: PChar
Returns the pointer to string that contains the command-line arguments.
Use ParamStr to access individual arguments. Delphi uses space character to break command line parameters; use double quotes around text that contains space characters (long file names).
Run with Parameters
var s: string;
ShowMessage('Program called with parametes: ' + s);
How to pass command-line parameters to your Delphi application and how to handle them.
Free Delphi code snippet inside every Delphi Newsletter!|
Got some code to share? Got a question? Need some help?|