Search the Community
Showing results for tags 'webdav'.
-
Hi All, Trying to open windows explorer to a WebDav location and it's not working quite how I want, on the computers it is setup as a "network location" (as opposed to a "mapped drive", and this unfortunately can't be changed), the "Data" WebDav folder sits directly under "This PC" if that's an easier way to get to it. any suggestions as to what I can correct to get the 2nd example to work? ; This works, but I'm trying to avoid this as users normally see the URL style in the 2nd example below $folderToOpen = "\\mycompany.sharepoint.com@SSL\DavWWWRoot\Data" Run("Explorer.exe " & $folderToOpen) ; This does not work, it tries to open the WebDav url in the default web browser $folderToOpen = "https://mycompany.sharepoint.com/Data" Run("Explorer.exe " & $folderToOpen) ShellExecute also opens it in the default browser. Saw _WinAPI_ShellOpenFolderAndSelectItems but couldn't get the 2nd example to work. If I manually open Windows Explorer and paste in https://mycompany.sharepoint.com/Data it loads the WebDav directory without issue. If I have to use the pathing from the first example it is fine, just trying to give users a familiar experience. Thanks!
-
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?