In message <eUpnKAHPHHA.3544@TK2MSFTNGP03.phx.gbl>, BrianJT <no@no.com>
writes
>I am trying to set up a function that allows me type in "Script:" <no
>quotes> and go to a PSdrive I have mapped on the local file system, just
>like typing C: or D: would. I wrote this function for my profile:
>
>function global:Script: { Set-Location Script: }
In my case, I keep my scripts in d:\foo. I use:
PSH [D:\foo]: New-PSDrive -name script -psProvider filesystem -root
d:\foo
Name Provider Root
---- -------- ----
script FileSystem D:\foo
PSH [D:\foo]: dir script:
Directory: Microsoft.PowerShell.Core\FileSystem:

:\foo
Mode LastWriteTime Length Name
---- ------------- ------ ----
....
Hope this helps.
--
Thomas Lee
doctordns@gmail.com
MVP - Admin Frameworks and Security