SplitFileNameAndParams procedure
String / Filename routines |
![]() ![]() ![]() |
acUtils
|
procedure SplitFilenameAndParams(var FileName, Params: String);
|
The SplitFilenameAndParams procedure divieds the separates the command file parameters from the file name.
|
var
|
Filename, Parameters: String;
|
begin
|
Filename := 'C:\WINDOWS\Rundll32.exe powrprof.dll,LoadCurrentPwrScheme';
|
SplitFilenameAndParams(Filename, Parameters);
|
{ Results:
|
Filename = "C:\WINDOWS\Rundll32.exe"
|
Parameters = "powrprof.dll,LoadCurrentPwrScheme"
|
}
|
SplitStr procedure.
|