?? 081.htm
字號(hào):
<HTML><HEAD><meta http-equiv="Content-Type" content="text/html; charset=GB2312"><TITLE>-->DELPHI專題文檔-程序應(yīng)用-->如何將你的程序放在Windows啟動(dòng)中</TITLE>
<META NAME="keywords" CONTENT=" DELPHI專題文檔-程序應(yīng)用 如何將你的程序放在Windows啟動(dòng)中">
<META NAME="description" CONTENT=" - DELPHI專題文檔-程序應(yīng)用 - 如何將你的程序放在Windows啟動(dòng)中">
<style>
<!--
#page {position:absolute; z-index:0; left:0px; top:0px}
.tt3 {font: 9pt/12pt "宋體"}
.tt2 {font: 12pt/15pt "宋體"}
a {text-decoration:none}
a:hover {color: blue;text-decoration:underline}
-->
</style>
</HEAD>
<a href="index6.html">返回</a>
<body text="#000000" aLink=#9900ff link=#006699 vLink=#006699 bgcolor="#FFFFFF" leftmargin="3" topmargin="3" marginheight="3" marginwidth="3">
<TABLE WIDTH="100%" CELLPADDING=10 CELLSPACING=0 BORDER=0>
<TR>
<TD class="tt2" bgcolor="#F5F8F8" width="84%"><center><B><FONT style="FONT-SIZE: 16.5pt" COLOR="#FF6666" FACE="楷體_GB2312">如何將你的程序放在Windows啟動(dòng)中</FONT></B></center>
<hr color="#EE9B73" size="1" width="94%">
<p class="tt2">有時(shí)需要讓W(xué)indows在啟動(dòng)時(shí)自動(dòng)運(yùn)行你的程序,如何在程序中實(shí)現(xiàn)呢?
<br>
<br>
使用Regedit查找HKEY_LOCALMACHINE\Sodtware\Microsoft\Windows\CurrentVersion\Run,你會(huì)發(fā)現(xiàn)所有的Windows啟動(dòng)時(shí)調(diào)用的程序都在這里,于是你將你的程序增加在這里就可以了.名稱為你的程序的標(biāo)題,其值為你的程序的執(zhí)行路徑和文件名稱.
<br>
<br>
如Interbase: <br>
Interbase Server"D:\Program Files\Borland\IntrBase\BIN\ibserver.exe" <br>
<br>
在程序中實(shí)現(xiàn)可以使用TRegIniFile或者使用TRegistry都可以. <br>
<br>
User Registry; <br>
Var <br>
RegF:TRegistry; <br>
begin <br>
RegF:=TRegistry.Create; <br>
RegF.RootKey:=HKEY_LOCAL_MACHINE; <br>
try <br>
RegF.OpenKey('SOFTWARE\Microsoft\Windows\CurrentVersion\Run',True); <br>
RegF.WriteString('Interbase Server', '"D:\Program
Files\Borland\IntrBase\BIN\ibserver.exe"'); <br>
except ... <br>
End; <br>
RegF.Close; <br>
RegF.Free; <br>
end; </p>
<BR>
<hr color="#EE9B73" size="1" width="94%">
</TD>
</TR>
</table>
</BODY></HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -