Autor Beitrag
F.Art
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 434



BeitragVerfasst: Do 09.12.04 12:51 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
    with TRegistry.Create do begin try
      Rootkey:=HKEY_LOCAL_MACHINE;
      OpenKey('Software\Microsoft\Windows\CurrentVersion\Run',True);
      WriteString('test','C:\test.txt');
      finally
      Free;
      end; end;


Wenn dieser RegSchlüssel da ist möchte ich von meinem Programm eine Meldung bekommen.
Wie lasse ich danach suchen?
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 09.12.04 13:12 
Siehe OH unter TRegistry.KeyExists
F.Art Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 434



BeitragVerfasst: Fr 10.12.04 09:29 
Ich habe es so gelöst

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
with TRegistry.Create do begin try
     Rootkey:=HKEY_LOCAL_MACHINE;
     OpenKey('Software\Microsoft\Windows\CurrentVersion\Run',True);
     if ReadString('Test')='' then else ShowMessage('Der Eintrag ist nicht vorhanden');
     finally
     Free;
     end; end;