Nisam siguran da li razumijem. Evo kako to ja shvaćam:
taj folder bez "vidljivog imena" mi se nalazi u root-u D diska. Sledećom naredbom vidim da taj folder zaista postoji:
Code:
(gci d:\ -Force | where {$_.mode -match 'd--h-'}).count
Rezultat je 1
Punu putanju do tog foldera dobijam sa sledećom naredbom:
Code:
(gci d:\ -Force | where {$_.mode -match 'd--h-'}).fullname
Kada ovu putanju prosledim na Set-Location dobijam onu grešku da putanja ne postoji.
Code:
sl (($location = gci d:\ -Force | where {$_.mode -match 'd--h-'}).fullname)
sl : An object at the specified path D:\ does not exist.
At line:1 char:1
+ sl (($location = gci d:\ -Force | where {$_.mode -match 'd--h-'}).fullname)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-Location], PSArgumentException
+ FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.SetLocationCommand