[英]install a service on a remote computer from a MSBuild script
我有創建服務的此任務:
目標名稱=“ InstallService” DependsOnTargets =“ CopyFiles”
執行命令=“ sc \\ \\ remotecomputer create” ServiceHost“ binPath =”“ E:\\ ServiceHost.exe” DisplayName =“” ServiceHost“” WorkingDirectory =“ c:\\” ContinueOnError =“ false” / Target
問題是,當我運行此腳本時,它不知道\\ \\ remotecomputer。
我想通了:您必須像這樣使用它:“”“ \\ \\ remotecomputer”“”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.