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.
\\servername\sitename\library\
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.
Related
Having installed onedrive on Ubuntu I have noted that the monitor function works quite well but does not maintain the directory structure on the remote onedrive system. I have two directories defined in the local onedrive folder. If I create or copy a document into one or other of these directories then onedrive monitor will upload it to the remote server but they appear at the top level and not in synced folder from which they came. Is there a way to configure onedrive to have it respect the source directory structure?
Having installed onedrive on Ubuntu
Hopefully you followed the correct installation procedure as documented here: https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md
I have noted that the monitor function works quite well but does not maintain the directory structure on the remote onedrive system. I have two directories defined in the local onedrive folder. If I create or copy a document into one or other of these directories then onedrive monitor will upload it to the remote server but they appear at the top level and not in synced folder from which they came.
This is very odd - as, the folder that is containing those document is what should be replicated to OneDrive online.
Please follow the correct support process as detailed on GitHub: https://github.com/abraunegg/onedrive
I have a two webservers, on each webserver in the C:\inetpub\logs\LogFiles I have created a symbolic link to the other servers log file folders, so essentially I can be logged in to one of the webservers and see the logs on both servers in one place. This works perfectly.
I am building a webpage to make the log files available via a webpage, the code simply goes to the C:\inetpub\logs\LogFiles directory and lists the files in each sub folder, i.e. W3SVC1 (the local folder) and webserver2-w3svc1 (the remote log folder).
For the local folders it works fine, but I am getting the "access denied" error when trying to call Directory.GetFiles on the symlinkd folder. I suspect this is some sort of permissions error, but I tried giving the symlinkd folder full permissions to "everyone" but I still get the same error.
Is this something to do with the fact that when I created the symlinkd I had to enter the username and password of the webserver2, and these credentials cannot be accessed/used by IIS when trying to get access to the folder?
Is there anything I can do allow IIS to access the contents of this symlinkd folder?
I don't think you need to use a symlink, you can create a virtual directory mapping to that directory in IIS, just map it to the target path. In IIS, right click on the website and select Add Virtual Directory.
For more information, please refer to this official document.
After much experimentation, the only way to do this is as follows:
Create a new user on the computer.
Run the AppPool in IIS under this new users' identity as opposed to the default IUSR account.
Give the folder you are sharing permissions to this user AND 'share' this folder with the new user.
I was able to map my sharepoint drive on my local computer (Note: this was not using the sync option on sharepoint, as I do not have access to do so). I am able to create new folders, however I am unable to rename it. When I try to rename the folder, I get the following message, regardless of how many characters I put:
I can change the file name from the sharepoint web portal, but not on my mapped network drive.
I am using Windows 10
I don't know if it's the same problem, but this guy got the same error message when he mapped the drive using a / at the end of the URL.
(i.e. he solved remapping: https://hostname.domain.com/Shared Documents
instead of: https://hostname.domain.com/Shared Documents/ )
Just getting my head around the new Azure web sites feature and hitting my first obstacle. I'm deploying a PHP site which writes cache data to the file system, but the app is throwing an error because the folder it wants to write to does not have write permission. Is it possible to set permissions on folders or is this a no-no?
I can probably work round this but would like to know if it's possible.
Folder permissions cannot be set/customized. This means whatever location your app writes to should be under your site root.
Your site can only write to locations under C:\DWASFiles\Sites\[siteName]\VirtualDirectory0 and to the %TEMP% folder.
Two caveats here:
Stuff can't be written directly under VirtualDirectory0, you have to create a subfolder under there and place your files in that subfolder
The %TEMP% folder really is temporary! If your site instance goes down for any reason and is brought back up somewhere else then everything in your %TEMP% folder will be gone. Use it only for files that really are temporary.
Is the folder that the app is trying to write to under the site's folder?
It's my understanding that folder permissions cannot be set/changed. But I haven't seen anything from Microsoft that definitively says "yes" or "no" to that.
It should be possible using webdeploy.
However I don't think there is a way do it without manually setting up the webdeploy package - as described in the post http://blogs.msdn.com/b/azureappgallery/archive/2013/04/03/set-file-folder-permissions-for-your-content-on-azure-website-using-web-deployable-package.aspx.
I'm using multiple computers for development and I want to be able to store my files in my dropbox folder. I went to change the physical path in IIS from c:\inetpup\wwwroot to the dropbox folder but I get this error:
The requested page cannot be accessed
because the related configuration data
for the page is invalid.
I couldn't find the config file so I was wondering if anyone had done this before or whether there a better way to sync everything nicely across several PCs?
I tried it (IIS 7.5, Win 7) and it should work just fine to let your physical path of your web look at your dropfox folder. I would guess your web.config file generally contains malformed XML (see KB942055).
I'd suggest, try to map it to an empty folder just with an index.html file and see if this error still occurs.
As a workaround, I guess you can put Dropbox in your wwwroot folder and set up a virtual directory that points to Dropbox. However, there are some security issues that may hinder you from doing so. I come across a nice tutorial on how to set up Dropbox to IIS as FTP Publishing. Hope it helps.
Hodgin's guide on using Dropbox as FTP publishing.