通过CMD远程执行命令(tortoisehg)(PSEXEC)
基本上,我想使用PSEXEC来导航到远程计算机中的特定文件夹并执行“ HG Update Branch”。我试图创建以下批次,但我无法执行命令:
psexec cmd.exe /c "cd C:\Project\hg update Test"
它正在阅读,因为“ HG Update Test”是一个文件夹,而不是要完成的命令...我在这里倾斜,这似乎就像基本的东西:(。
Basically I want to use PsExec in order to navigate to a specificar folder in a remote computer and performe "hg update branch". I've tried to create the following batch but I'm not able to perform the command:
psexec cmd.exe /c "cd C:\Project\hg update Test"
It's reading as the "hg update Test" was a folder instead of command to be done... I'm tilting over here and this seems like a basic thing :(. How do I pass the "hg update branch" as cmd command through PsExec?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要更改目录,只需告诉HG什么路径操作:
帮助说:
You don't need to change directory, just tell HG what path to operate in:
The help says: