Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
かなり大きな msbuild xml スクリプトがあります。私はxmlに堪能ではありません.コードをバッチファイルに入れずに、スクリプトでWindowsサービスを開始または停止する方法はありますか?
ありがとう
次のコマンドを使用して、サービスを開始/停止できます
net start "servicename"
また
net stop "servicename"
またはMSBuildで:
<Exec Command="net start %(Service.Name)" />