Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » System.Environment   (RSS)

Mount-SpecialFolders.ps1

The other day I showed you how you can use ENUMs.  I showed an example of how you can find all the SPECIALFOLDERs on a system.  Here is a script that I call Mount-SpecialFolders.ps1 which mounts all your special folders as PowerShell drives.

What the Heck is an ENUM?

In my latest post Explore your [Environment] I said the following: PS> [System.Environment+SpecialFolder] IsPublic IsSerial Name                                    

Explore Your [Environment]

This topic is a little long but I strongly encourage you to walk through it and master the techniques it illustrates.  I can assure you that you'll will use them a couple thousand times in the next couple of years. .Net provides a wonderful class
 
Page view tracker