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!
If you have local network access to the machine running SharePoint, you can use a UNC path to access the files directly.
The
sitenameis 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.