我的要求是c:\test.exe已经调用成功,主程序后面的代码才继续执行
解决方案 »
- 我是刚学VB没多久,请大家帮我解决一个简单的问题!
- 显示错误:要求对象!怎么办那?
- 已知一个表的结构如下,如何根据这个表结构建一个TreeView树??
- 一篇好文:visual basic不会消失
- 谁帮俺翻译一下,谢谢!
- 请教,一个关于VB利用BCP导出的问题
- “您现在的位置”是怎么做出来的
- 怎么才能获取硬盘的序列号?各位高手帮帮忙啊。。。。。。
- 大家谁有东西要做?来找我!!!
- VB报错462,请大神帮忙解决
- 怎么通过sql语句查询access表中日期为null的字段?
- 一到这Public Function ExecuteSQL(ByVal SQL As String, MsgString As String) As ADODB.Recordset就显示用户类型未定义
shell "para"
doevents
Private Declare Function CreateProcessA Lib "Kernel32" (ByVal lpApplicationName As Long, ByVal lpCommandLine As String, ByVal lpProcessAttributes As Long, ByVal lpThreadAttributes As Long, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, ByVal lpEnvironment As Long, ByVal lpCurrentDirectory As Long, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As LongPrivate Type PROCESS_INFORMATION
hProcess As Long
hThread As Long
dwProcessID As Long
dwThreadID As Long
End TypePrivate Type STARTUPINFO
cb As Long
lpReserved As Long
lpDesktop As Long
lpTitle As Long
dwX As Long
dwY As Long
dwXSize As Long
dwYSize As Long
dwXCountChars As Long
dwYCountChars As Long
dwFillAttribute As Long
dwFlags As Long
wShowWindow As Integer
cbReserved2 As Integer
lpReserved2 As Long
hStdInput As Long
hStdOutput As Long
hStdError As Long
End TypePrivate Sub Command1_Click()
Dim start As STARTUPINFO, proc As PROCESS_INFORMATION
CreateProcessA 0&, "C:\Program Files\Microsoft Office\Office\WINWORD.EXE", 0&, 0&, 1&, _
0, 0&, 0&, start, proc
WaitForSingleObject proc.hProcess, -1
MsgBox "OK"
End Sub