将目录从 SharePoint 站点复制到本地驱动器
作为较大批处理脚本的一部分,我需要将目录从 TFS SharePoint 站点复制到本地驱动器。比如:
copy "http://mySharePointSite/sites/MyProjectCollection/MyTeamProject/Shared Documents/Some Folder" C:\Temp
有什么想法我会怎么做吗?
谢谢!
As part of a larger batch script, I need to copy a directory from a TFS SharePoint site down on to the local drive. So something like:
copy "http://mySharePointSite/sites/MyProjectCollection/MyTeamProject/Shared Documents/Some Folder" C:\Temp
Any ideas how I would do this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您可以通过本地网络访问运行 SharePoint 的计算机,则可以使用 UNC 路径直接访问文件。
sitename
仅在您实际访问子站点时使用,否则它只是\\servername\library\
对于团队项目,路径可能略有不同,但您应该能够通过在资源管理器中浏览找到正确的路径。
If you have local network access to the machine running SharePoint, you can use a UNC path to access the files directly.
The
sitename
is only used if you're actually accessing a sub site, otherwise it's just\\servername\library\
The path may be slightly different for team projects, but you should be able to find the correct path by browsing to it in Explorer.