Search the Community
Showing results for tags 'Expl;orer'.
-
I'm trying to get my users access to our main information store without having to connect to the VPN (which uses port 10443 and is blocked in some places). I have WebDAV set up on the server and connecting works if I type or paste: remote.{domain}.com@SSL@443DavWWWRootDriveZ into the Explorer address bar. It prompts for login information even if running from a domain-joined computer logged in with appropriate credentials. However, if I try to create a shortcut (in any of several ways) Explorer does not make the connection, does not display login information, and displays some local directory (usually My Documents). It appears that the only way to make this connection is to enter the path in Explorer's address bar. I tried the following: $Path = "\\remote.{domain}.com@SSL@443\DavWWWRoot\DriveZ" Func _GetHwndFromPID($PID) $hWnd = 0 $stPID = DllStructCreate("int") Do $winlist2 = WinList() For $i = 1 To $winlist2[0][0] If $winlist2[$i][0] <> "" Then DllCall("user32.dll", "int", "GetWindowThreadProcessId", "hwnd", $winlist2[$i][1], "ptr", DllStructGetPtr($stPID)) If DllStructGetData($stPID, 1) = $PID Then $hWnd = $winlist2[$i][1] ExitLoop EndIf EndIf Next Sleep(100) Until $hWnd <> 0 Return $hWnd EndFunc ;==>_GetHwndFromPID $ExplorerPID = Run("explorer.exe") $Handle = _GetHwndFromPID($ExplorerPID) ControlSend($Handle,"",41477,$Path) but it acts just like the shortcuts. Any ideas?