| |
Delphi Stuff
Components
Units
Code
Links
|
|
|
BTCommandLineThis unit implements a more complete set of routines for handling command line parameters. This can be used instead of functions like FindCmdLineSwitch and ParamStr.
Source Included
No Help File
Types
Variables And Constants
Procedures
Functions
| CommandLineParamExists |
Determines if a given command line parameter exists in the executed command line.
Input: ParamName
Output: Boolean (True if parameter exists)
|
| GetCommandLineValue |
Returns the value of a command line parameter that has a value associated with it.
Input: ParamName Default
Output: String (The value associated with the paramter)
|
Example
Example for the command line: c:\test.exe -automatic -days:10
Uses
BTCommandLine;
...
If CommandLineParamExists ('automatic') Then Begin
...
NumDays := StrToInt (GetCommandLineValue ('Days', 0));
...
End;
|
Download BTCommandLine 1.0 (09-26-2005)
|
|