In case anyone else is interested in this problem the only way to resolve it is to call the .EXE directly to create multiple IE processes. Any of the simpler object based ways only create multiple threads and one process.
Below is some code I made for this that finds the location of IExplore.exe through the registry and then launches a website. The registry module is attached.
VB Code:
Option Explicit Const HKEY_CLASSES_ROOT = &H80000000 Const HKEY_CURRENT_USER = &H80000001 Const HKEY_LOCAL_MACHINE = &H80000002 Const HKEY_USERS = &H80000003 ' Reg Key Security Options... Const READ_CONTROL = &H20000 Const KEY_QUERY_VALUE = &H1 Const KEY_SET_VALUE = &H2 Const KEY_CREATE_SUB_KEY = &H4 Const KEY_ENUMERATE_SUB_KEYS = &H8 Const KEY_NOTIFY = &H10 Const KEY_CREATE_LINK = &H20 Const KEY_ALL_ACCESS = KEY_QUERY_VALUE + KEY_SET_VALUE + _ KEY_CREATE_SUB_KEY + KEY_ENUMERATE_SUB_KEYS + _ KEY_NOTIFY + KEY_CREATE_LINK + READ_CONTROL Private Sub Form_Load() Dim strSubKey As String Dim strValueName As String Dim AppPath As String Dim AppPathLen As Integer 'Registry value locations strSubKey = "SOFTWARE\Classes\Applications\iexplore.exe\shell\open\command" strValueName = "" 'Returning the application path back from registry AppPath = RegGetValue$(HKEY_LOCAL_MACHINE, strSubKey, strValueName) 'Determining the length of the path AppPathLen = Len(AppPath) 'Removing the " %1" from the end of the path AppPath = Left(AppPath, AppPathLen - 3) 'Adding the site to be navigated to AppPath = AppPath & " website" 'Launching IE Shell AppPath, vbNormalFocus End End Sub




Reply With Quote