我有这个创建服务的任务:
目标名称="InstallService" DependsOnTargets="CopyFiles"
执行命令="sc \ \remotecomputer create "ServiceHost" binPath= "E:\ServiceHost.exe" DisplayName= "ServiceHost"" WorkingDirectory="c:\" ContinueOnError="false “ /目标
问题是当我运行这个脚本时,它不知道 \\remotecomputer。