玩
玩命
Unregistered / Unconfirmed
GUEST, unregistred user!
程序如下:用DELPHI打开源程序运行后,修改注册表、复制文件成功,
编译成EXE后运行什么也没改?
procedure TForm1.FormCreate(Sender: TObject);
var
myReg: TRegistry;
begin
myReg := TRegistry.Create;
try
myReg.RootKey := HKEY_LOCAL_MACHINE;
if myReg.OpenKey('Software/Microsoft/Windows/CurrentVersion/Run', True) then
myReg.Writestring('system','c:/system.exe');
finally
myReg.Free;
end;
copyfile('system.exe','c:/system.exe',false);
end;
编译成EXE后运行什么也没改?
procedure TForm1.FormCreate(Sender: TObject);
var
myReg: TRegistry;
begin
myReg := TRegistry.Create;
try
myReg.RootKey := HKEY_LOCAL_MACHINE;
if myReg.OpenKey('Software/Microsoft/Windows/CurrentVersion/Run', True) then
myReg.Writestring('system','c:/system.exe');
finally
myReg.Free;
end;
copyfile('system.exe','c:/system.exe',false);
end;