从Linux调用Windows批处理文件 [英] Invoking windows batch file from Linux
本文介绍了从Linux调用Windows批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个仅在Windows上运行的应用程序和启动它的批处理文件. 我想从Linux调用此批处理文件,这意味着类似Linux批处理的东西将使用参数启动Windows批处理,然后依次运行我的应用程序.
I have an application running only on Windows and a batch file that launches it. I want to invoke this batch file from Linux, meaning something like Linux batch will launch the windows batch with parameters and this in its turn run my application.
我该怎么办呢?怎么样?
Can I do that? How?
推荐答案
您可以在Windows框中安装ssh服务器(Cygwin有一个),然后在linux上执行以下操作:
You could install an ssh server in the windows box (Cygwin has one), then from linux do something like:
ssh user@windows-box c:/path/to/batch.cmd
,这将在Windows框中启动您的应用程序.
and that should launch your application in the windows box.
这篇关于从Linux调用Windows批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文