javascript - Open Sharepoint https URL in windows file explorer
问题描述
I am trying to open my sharepoint folder structure in windows explorer as it want to access sharepoint folder from office desktop (using office addin).
Some thing like
window.open('file:///https://servername.sharepoint.com/teams/')
but this doesnot work. It gives Access is denied error.
I tried with below things. First I tried
window.open('file://servername.sharepoint.com/teams/')-
It opened link in file explorer but as http request. which is causing authentication issue after getting file. Then I tried:
window.open('file:///https%3A%2F%servername.sharepoint.com/)-
I tried using escape sequence and many more combinations, bt nothing seems to be working
I want to open sharepoint folder structure in windows explorer, but for that document to open without error the link in windows explorer should be https
windows explorer with sharepoint URL
why windows explorer - to give office add-in integrated look, i do not want to open sharepoint link in browser. so i tried open dialog box, but in open dialog box we cannot set location path. So at last we decided to go with windows explorer
解决方案
是的,您可以在文件资源管理器中打开 SharePoint 文件夹 URL 路径,如下所示
对于 http url ( http://my-domain.sharepoint.com/teams/xxxxxxxx/xxxxxxx/ )
window.open('file://my-domain.sharepoint.com/teams/xxxxxxxx/xxxxxxx/', '_blank');
对于 https 网址(https://my-domain.sharepoint.com/teams/xxxxxxxx/xxxxxxx/)
window.open('file://my-domain.sharepoint.com@SSL/teams/xxxxxxxx/xxxxxxx/', '_blank');
推荐阅读
- python - Databricks CLI 未在 Ubuntu 18.04 上安装
- python - Tensorflow Lite - ValueError:无法设置张量:尺寸不匹配
- python - 无法重新导入python tensorflow模块
- javascript - 当 AJAX 加载成功完成时做一些事情
- python - 在熊猫中分隔数据框
- flask - Flask:为使用 Openpyxl 创建的 Excel 文件创建可下载链接
- wordpress - 从除类别(WP)之外的永久链接中删除尾部斜杠
- c# - 防止 cookie 重播/cookie 被多个客户端使用
- linux - 无法从 USB 驱动器下载驱动程序
- git - MAC OS 上的 Visual Studio Code 和 GIT