Konuyu Oyla:
  • Toplam: 0 Oy - Ortalama: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Programı Başlangıca Yazmak
#1
Kod:
// Başlangıçta başlatmak için Registry'e yazar
procedure RunOnStartup(value:string);
var R:Tregistry;
begin
R:=TRegistry.Create;
R.RootKey:=HKEY_LOCAL_MACHINE;
R.OpenKey('\\Software\\Microsoft'
   + '\\Windows\\CurrentVersion\\Run',false);
 R.WriteString(value,application.exename);
  R.CloseKey;
R.free;
end;

// Az önce yazdığımız değeri silmek istersek:
procedure DoNotRunOnStartup(value:string);
var R:Tregistry;
begin
R:=TRegistry.Create;
R.RootKey:=HKEY_LOCAL_MACHINE;
R.OpenKey('\\Software\\Microsoft'
   + '\\Windows\\CurrentVersion\\Run',false);
if R.ValueExists(value) then
R.DeleteValue(value); 
  R.CloseKey;
R.free;
end;
Ara
Cevapla }}}}


Hızlı Menü:


Şu anda bu konuyu okuyanlar: 2 Ziyaretçi

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping