SplitFileNameAndParams procedure
String / Filename routines
Return to Introduction  Previous page  Next page
Unit
acUtils  

Declaration
procedure SplitFilenameAndParams(var FileName, Params: String);  

Description
The SplitFilenameAndParams procedure divieds the separates the command file parameters from the file name.  

Example
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"  
  }  

See also
SplitStr procedure.