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).
var s: string;
s:=CmdLine;
ShowMessage('Program called with parametes: ' + s);
|
Run with Parameters
How to pass command-line parameters to your Delphi application and how to handle them.
ParamStr,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|