In Powershell I am defining a new PSDrive called test
. But when I type test:
at the console it throws an error. If I type cd test:
it works fine.
Shouldn't I be able to navigate to the test
drive just by typing test:
?
PS> New-PSDrive -name test -psprovider FileSystem -root C:\test
WARNING: column "CurrentLocation" does not fit into the display and was removed.
Name Used (GB) Free (GB) Provider Root
---- --------- --------- -------- ----
test 128.42 FileSystem C:\test
PS> test:
The term 'test:' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:6
+ test: <<<<
+ CategoryInfo : ObjectNotFound: (test::String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException