Changeset 72 for trunk/Packages/Common/UCommon.pas
- Timestamp:
- Mar 6, 2016, 12:10:38 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UCommon.pas
r59 r72 8 8 {$IFDEF Windows}Windows,{$ENDIF} 9 9 Classes, SysUtils, StrUtils, Dialogs, Process, LCLIntf, 10 FileUtil ; //, ShFolder, ShellAPI;10 FileUtil, LazFileUtils; //, ShFolder, ShellAPI; 11 11 12 12 type … … 91 91 I: Integer; 92 92 begin 93 Result := ''; 93 94 for I := 1 to Length(Source) do begin 94 95 Result := Result + LowerCase(IntToHex(Ord(Source[I]), 2)); … … 105 106 Path := IncludeTrailingPathDelimiter(APath); 106 107 107 Find := FindFirst( UTF8Decode(Path + AFileSpec), faAnyFile xor faDirectory, SearchRec);108 Find := FindFirst(Path + AFileSpec, faAnyFile xor faDirectory, SearchRec); 108 109 while Find = 0 do begin 109 DeleteFileUTF8(Path + UTF8Encode(SearchRec.Name));110 DeleteFileUTF8(Path + SearchRec.Name); 110 111 111 112 Find := SysUtils.FindNext(SearchRec); … … 416 417 417 418 procedure OpenWebPage(URL: string); 418 var419 Process: TProcess;420 Browser, Params: string;421 419 begin 422 420 OpenURL(URL); 423 {try424 Process := TProcess.Create(nil);425 Browser := '';426 //FindDefaultBrowser(Browser, Params);427 //Process.Executable := Browser;428 //Process.Parameters.Add(Format(Params, [ApplicationInfo.HomePage]);429 Process.CommandLine := 'cmd.exe /c start ' + URL;430 Process.Options := [poNoConsole];431 Process.Execute;432 finally433 Process.Free;434 end;}435 421 end; 436 422
Note:
See TracChangeset
for help on using the changeset viewer.