![]() |
Überprüfen ob Prohramm schon im Autostart ist!
Hi, ich stelle mein Programm mit folgendem Code in den Autostart:
Delphi-Quellcode:
Reg := TRegistry.Create;
Reg.RootKey := HKEY_CURRENT_USER; Reg.OpenKey('Software\Microsoft\Windows\CurrentVersion\Run', True); Reg.WriteString('Walli', ParamStr(0)); Reg.Destroy; Wie kann ich aber zuvor prüfen ob mein Prorgramm schon im Autostart ist? |
Re: Überprüfen ob Prohramm schon im Autostart ist!
Ganz einfach ;)
Code:
....cat:...
Reg := TRegistry.Create;
try Reg.RootKey := HKEY_CURRENT_USER; Reg.OpenKey('Software\Microsoft\Windows\CurrentVersion\Run', True); [color=#f50000]if not Reg.ValueExists('Walli') then[/color] Reg.WriteString('Walli', ParamStr(0)); finally Reg.Destroy; end; P.S:: Value wars :mrgreen: |
Re: Überprüfen ob Prohramm schon im Autostart ist!
Zitat:
Greetz alcaeus [edit]Immer diese Katze :roll: ;)[/edit] |
Re: Überprüfen ob Prohramm schon im Autostart ist!
Zitat:
mfG mirage228 |
Re: Überprüfen ob Prohramm schon im Autostart ist!
Zitat:
...:cat:... |
Re: Überprüfen ob Prohramm schon im Autostart ist!
also fehler gabs nichtz
|
Re: Überprüfen ob Prohramm schon im Autostart ist!
Zitat:
Greetz alcaeus |
Re: Überprüfen ob Prohramm schon im Autostart ist!
und wie wende ich das dann an?
|
Re: Überprüfen ob Prohramm schon im Autostart ist!
Zitat:
Greetz alcaeus |
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:56 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz