0
有誰知道如何重新啓動此服務,而無需通過services.msc手動觸發它?我怎樣才能把它放在一個腳本中,這個服務可以作爲服務自動重啓?提前致謝!由Tanuki軟件作爲Windows服務使用命令行重新啓動wrapper.exe
"c:\Program Files (x86)\Tanuki\bin\wrapper.exe" -s "c:\Program Files (x86)\Tanuki\conf\MTG.conf"
我收到此錯誤信息:
C:\Users\Ning>"c:\Program Files (x86)\Tanuki\bin\wrapper.exe" -s "c:\Program Files (x86)\Tanuki\conf\MTG.conf"
Attempting to start MTG as an NT service.
Calling StartServiceCtrlDispatcher...please wait.
StartServiceControlDispatcher failed!
The -s and --service commands should only be called by the Windows
ServiceManager to control the Wrapper as a service, and is not
designed to be run manually by the user.
For help, type
c:\Program Files (x86)\Tanuki\bin\wrapper -?}
我該如何把這整件事放在那裏? (x86)\ Tanuki \ bin \ wrapper.exe「-s」c:\ Program Files(x86)\ Tanuki \ conf \ MTG.conf「 我還在使用wrapper.exe它使用來自MTG.conf的配置 –
以上代碼適用於Autohotkey腳本。嘗試將代碼複製到AHK腳本中並以管理員身份運行(使用上下文菜單)。 – user3419297
謝謝大家,它確實啓動了服務,但我想在services.mcs或Service Management Console中以「運行」狀態查看它。那會怎麼樣? –