Process.Start 的 VB 6 等价物是什么? [英] What is the VB 6 equivalent of Process.Start?

查看:45
本文介绍了Process.Start 的 VB 6 等价物是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的被这一条线卡住了.在 vb.net 中这很容易,但我如何在 vb6 中做到这一点?试图从谷歌搜索几个小时,但一无所获.感觉几乎令人尴尬.

I am stuck on a really stuck with this one line. In vb.net this is easy, but how do I do this in vb6? Tried to search from google for few hours and got nothing. Feels almost embrassing.

这是代码.(.NET)

Here's the code. (.NET)

Process.Start("runme.exe", " -parameter1 " & "-parameter2 " & "-parameter3")

我想从与程序所在的目录相同的目录中运行带有参数的 EXE.我确信有一些非常简单的解决方案,但我无法让它发挥作用.任何帮助将不胜感激.

I want to run EXE, from the same directory as where the program is, with parameters. I am sure there is some very simple solution, but I can't get it to work. Any help would be appreciated.

推荐答案

你可以使用 ShellShellExecute

Shell "c:\runme.exe", vbNormalFocus

http://msdn.microsoft.com/en-us/图书馆/aa242087(v=vs.60).aspx

这篇关于Process.Start 的 VB 6 等价物是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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