使用vb运行cygwin命令 [英] run cygwin commands using vb

查看:82
本文介绍了使用vb运行cygwin命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用vb在cygwin中键入命令,代码是:

 Shell(" )
SendKeys.Send(" & _h&  "&域.文本&  & i +  1 & " .txt")



但是问题是我总是需要按"enter",以便cygwin运行处理"跟踪路由命令,所以我要求在vb中执行"enter"的代码,以便通过该代码执行该命令. div class ="h2_lin">解决方案

请看看:
http://msdn.microsoft.com/en-us/library/ms171548.aspx [ ^ ]


hi there, i have been trying to type commands into cygwin using vb, the code is:

Shell("C:\cygwin\Cygwin.bat")
SendKeys.Send("tracert -h " & _h & " " & domain.Text & " > temp" & i + 1 & ".txt")



but the problem is that i always need to press "enter" so that cygwin runs "processes" the trace route command,so am asking for the code which perform "enter" in vb so that the command will be executed through the code.

解决方案

Please have a look:
http://msdn.microsoft.com/en-us/library/ms171548.aspx[^]


这篇关于使用vb运行cygwin命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆