Wednesday, April 25, 2018

How Can I Go To A Sharepoint Directory Through the Cygwin Terminal (konsole)?

First, like a good person, map the Sharepoint site to a network drive like so :


  1. Open a File Explorer (aka Windows Explorer).
  2. Right click on "This PC" and select Map Network Drive..
  3. On the resulting dialog, click the underlined link for "Connect to a Web site that you can use to store your documents and pictures." This pops up a new dialog "Add Network Location".
  4. On this new dialog, click Next.
  5. You'll see an option (that may be already selected; if not, select it) that says "Choose a custom network location". Click Next.
  6. Now, paste the "https://whatever.sharepoint.com.." and click Next.
  7. Now, it asks you to name your new network location. Give it a name. You'll be able to go here easily from the File Explorer from now on.

Excellent.


  1. Now, right click on the new folder name you'll see under This PC in File Explorer.
  2. You'll notice that the Target shows you the familiar URL while the "Comment" shows you the real deal : \\whatever.sharepoint.com@SSL\DavWWWRoot\whatever..
  3. Believe it or not, you can click here, then do Home to go to the beginning and do Shift+End to select all of it and then, in a command prompt, just do :


net use r: \\whatever.sharepoint.com@SSL\...

(you get the idea - you can just do a right-click to paste from clipboard)

Verdict - Cygwin is *the* best - easily whacks Windows Subsystem for L / Ubuntu and Git Bash as well. All you get with Git bash is some cute colouring. What you get with Cygwin/xterm that you don't get with the others :

easy font re-size with CTRL+/-. Of course, you have to put up with the annoying /cygdrive thing, but hey, pick your poison :)

No comments: