.Net:
PS > [IO.FileInfo]"\\?\UNC\LOCALHOST\C$"
Cannot convert value "\\?\UNC\LOCALHOST\C$" to type "System.IO.FileInfo". Error: "Illegal characters in path."
At line:1 char:1
+ [IO.FileInfo]"\\?\UNC\LOCALHOST\C$"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvalidCastConstructorException
vs
PS > [IO.FileInfo]"\\?\UNC\LOCALHOST\C$"
Mode LastWriteTime Length Name
---- ------------- ------ ----
d--hs- 4/29/2024 6:14 PM C$
А как точка помагает?
Обсуждают сегодня