資源簡(jiǎn)介
readme.txt
項(xiàng)目名稱:WatchProcessService
功能描述:使用系統(tǒng)服務(wù)的方式,守護(hù)進(jìn)程的開(kāi)啟狀態(tài)。
使用步驟:
1、解壓 WatchProcess.rar ,能看到這個(gè)文件,證明已經(jīng)解壓了。笑。
2、修改 WatchProcessService.config 中的內(nèi)容
appname 填寫進(jìn)程運(yùn)行時(shí)的名稱,不要加exe哦。
filepath 程序的絕對(duì)路徑
拷貝 WatchProcessService.config 到 C:\WINDOWS\system32,因?yàn)榉?wù)運(yùn)行時(shí)會(huì)默認(rèn)為該目錄
3、運(yùn)行install.bat文件
4、打開(kāi)服務(wù)
開(kāi)始 - 運(yùn)行 - cmd - services.msc
5、找到服務(wù) WatchProcessService
右鍵 - 屬性
登錄 - 允許服務(wù)與桌面交互 應(yīng)用
常規(guī) - 啟動(dòng) 確定
PS: 沒(méi)有資源分了,收2分,評(píng)論后還給你哈。

代碼片段和文件信息
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????27992??2015-02-26?09:53??InstallUtil.exe
?????文件????????690??2015-02-26?11:24??readme.txt
?????文件?????????50??2015-02-26?09:54??uninstall.bat
?????文件????????149??2015-02-26?11:19??WatchProcessService.config
?????文件???????9216??2015-02-26?10:59??WatchProcessService.exe
?????文件??????29184??2015-02-26?10:23??helloworld.exe
?????文件?????????46??2015-02-26?09:54??install.bat
-----------?---------??----------?-----??----
????????????????67327????????????????????7
-----------?---------??----------?-----??----
?????文件??????27992??2015-02-26?09:53??InstallUtil.exe
?????文件????????690??2015-02-26?11:24??readme.txt
?????文件?????????50??2015-02-26?09:54??uninstall.bat
?????文件????????149??2015-02-26?11:19??WatchProcessService.config
?????文件???????9216??2015-02-26?10:59??WatchProcessService.exe
?????文件??????29184??2015-02-26?10:23??helloworld.exe
?????文件?????????46??2015-02-26?09:54??install.bat
-----------?---------??----------?-----??----
????????????????67327????????????????????7
評(píng)論
共有 條評(píng)論