如何在VB中开启软件

来源:百度知道 编辑:UC知道 时间:2024/06/01 01:39:06
我想在VB中开启一个软件,比如迅雷安装软件,我想在VB中开启它我要怎么做?不是用shell命令,谁会得,请教下我!
可不可以做个教程给我看看 或者写下代码告诉我什么意思

能用shell为什么不用呢?

不用那个也行,批处理程序、API都可以

调WinAPI 的 CreateProcess函数,使用创建子进程的方法来做

1. shell vb内置命令
2. WinExec API
3. CreateProcess API
4. ShellExecute API
5. 其他

用cmd

方法:
1. shell vb内置命令
Shell "程序路径"
2. WinExec API
3. CreateProcess API
4. ShellExecute API
5. Execute API
……