Quick Tip: SPRoot shortcut

How many times a day do you find yourself typing C:\Program Files\Common Files\Microsoft Shared \Web Server Extensions\<whatever>?

Save yourself some trouble – define an environment variable called SPROOT that point to the folder then you can use it everywhere. Here’s how to do it:

  1. Open a command prompt.
  2. Enter the command:
setx SPROOT "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\

Hit return, close the command prompt and your done. (Note: The lack of closing quotation marks is intentional)

You can now navigate to the SharePoint hive by simply typing %SPROOT%. From the search box in the start menu it’ll show you the contents of the folder for easy access.

Another 2 seconds saved!

This entry was posted in Development, SharePoint 2010, SharePoint 2013, Tip and tagged . Bookmark the permalink.