unfortunately there is no objectproperty drive
Error that comes with:
(the argument can't be processed, because the value of the argument
"path" is NULL ....
Set-Location : Das Argument kann nicht verarbeitet werden, da der Wert
des Arguments "path" NULL ist. Ändern Sie den
Wert des Arguments "path" in einen Wert ungleich NULL.
Bei Zeile:1 Zeichen:13
+ set-location <<<< $myValue.drive
+ CategoryInfo : InvalidArgument: (

[Set-Location],
PSArgumentNullException
+ FullyQualifiedErrorId :
ArgumentNull,Microsoft.PowerShell.Commands.SetLocationCommand
Am 22.03.2010 16:58, schrieb Thomas Lee:
> In message <ushHJKdyKHA.3304@newsgroup>, Thorsten A. Oeltjen
> <thorsten@newsgroup> writes
>> why does
>>
>>
>>
>> $MyValue = new-Psdrive -name YMAT -Psprovider FileSystem -root
>> \\deingfle01.local.burkert.com\\nfs_bue\r3dnl_ymat\pin\0000 <enter>
>> set-location $MyValue: <enter>
>>
>> doesnt't work? >
> It's fairly simple really.
>
> $MyValue is a PSDrive. It has a Name parameter that would be used by
> default when you call Set5-Location. You want to use the object's Drive
> parameter.
>
> Try:
>
> Set-Location $myValue.drive