L
leo_zzz
Unregistered / Unconfirmed
GUEST, unregistred user!
我用下面这个方法 将 程序添加到注册表里,让程序开机自动运行
{...
var
RegF:TRegistry;
...
procedure TForm1.Button1Click(Sender: TObject);
begin
RegF:=TRegistry.Create;
RegF.RootKey:=HKEY_LOCAL_MACHINE;
try
RegF.OpenKey('SOFTWARE/Microsoft/Windows/CurrentVersion/Run',True);
RegF.WriteString(shotname,dir); //shotname是程序名 dir是程序地址
except
showmessage('sth wrong has happend!');
End;
RegF.CloseKey;
RegF.Free;
end;}
已经成功,但不知道怎么将写入到注册表 HKEY_LOCALMACHINE/Sodtware/Microsoft/Windows/CurrentVersion/Run
里的程序删掉
例如刚刚写进去的 RegF.WriteString(shotname,dir);
让他不随开机运行
哪位高手能给答案啊?
{...
var
RegF:TRegistry;
...
procedure TForm1.Button1Click(Sender: TObject);
begin
RegF:=TRegistry.Create;
RegF.RootKey:=HKEY_LOCAL_MACHINE;
try
RegF.OpenKey('SOFTWARE/Microsoft/Windows/CurrentVersion/Run',True);
RegF.WriteString(shotname,dir); //shotname是程序名 dir是程序地址
except
showmessage('sth wrong has happend!');
End;
RegF.CloseKey;
RegF.Free;
end;}
已经成功,但不知道怎么将写入到注册表 HKEY_LOCALMACHINE/Sodtware/Microsoft/Windows/CurrentVersion/Run
里的程序删掉
例如刚刚写进去的 RegF.WriteString(shotname,dir);
让他不随开机运行
哪位高手能给答案啊?