1

我有这个创建服务的任务:

目标名称="InstallService" DependsOnTargets="CopyFiles"
执行命令="sc \ \remotecomputer create "ServiceHost" binPath= "E:\ServiceHost.exe" DisplayName= "ServiceHost"" WorkingDirectory="c:\" ContinueOnError="false “ /目标

问题是当我运行这个脚本时,它不知道 \\remotecomputer。

4

1 回答 1

1

我想通了:你必须像这样使用它:"""\ \remotecomputer"""

于 2010-04-20T12:45:38.150 回答