Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This works well for us under Vista</p> <pre><code>Private Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As Any, lpThreadAttributes As Any, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long Private Type PROCESS_INFORMATION hProcess As Long hThread As Long dwProcessId As Long dwThreadId As Long End Type Private Type STARTUPINFO cb As Long lpReserved As String lpDesktop As String lpTitle As String 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 Type Dim ProcessInformation As PROCESS_INFORMATION Dim StartupInformation As STARTUPINFO Dim ReturnValue As Long Dim NullString As String Dim AppPathString As String StartupInformation.cb = Len(StartupInformation) ReturnValue = CreateProcess(NullString, AppPathString, ByVal 0&amp;, ByVal 0&amp;, 1&amp;, NORMAL_PRIORITY_CLASS, ByVal 0&amp;, NullString, StartupInformation, ProcessInformation) ' 'If you need to wait for the exe to finish ' Do While WaitForSingleObject(ProcessInformation.hProcess, 0) &lt;&gt; 0 DoEvents Loop </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload