Registriert seit: 9. Jun 2003
217 Beiträge
Delphi 7 Personal
|
Re: parameter!!
21. Nov 2003, 22:03
Delphi-Quellcode:
procedure TForm1.Button2Click(Sender: TObject);
var Reg: TRegistry;
begin
Reg := TRegistry.Create;
with Reg do
begin
RootKey := HKEY_CLASSES_ROOT;
OpenKey('.aba', True);
WriteString('', 'max');
OpenKey('\' + 'max', True);
WriteString('', 'prog');
OpenKey('DefaultIcon', True);
WriteString('', 'c:\Entschluessel\Project1.exe' + ','+IntToStr(0));
OpenKey('\' + 'max' + '\Shell\Open\Command', True);
WriteString('', '"' + 'c:\Entschluessel\Project1.exe' + '" "' + '0'+ '"');
end;
Reg.Free;
end;
|
|
Zitat
|