如何使用 VB6 调用 Windows shell 命令? [英] How do I call a Windows shell command using VB6?

查看:30
本文介绍了如何使用 VB6 调用 Windows shell 命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 VB6 像从命令行一样调用任何 Windows shell 命令?

How exactly using VB6 can I can call any Windows shell command as you would from the command-line?

例如,一些琐碎的事情:

For example, something as trivial as:

echo foo

推荐答案

你的方法如下:

Shell "cmd echo foo", vbNormalFocus 

这篇关于如何使用 VB6 调用 Windows shell 命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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