PowerShell 中支援 Get-ChildItem 的方法有哪些?


目錄和檔案操作提供了有用的方法或函式。

目錄的方法。

TypeName: System.IO.DirectoryInfo

Name                      MemberType
----                      ----------
Create                    Method
CreateObjRef              Method
CreateSubdirectory        Method
Delete                    Method
EnumerateDirectories      Method
EnumerateFiles            Method
EnumerateFileSystemInfos  Method
Equals                    Method
GetAccessControl          Method
GetDirectories            Method
GetFiles                  Method
GetFileSystemInfos        Method
GetHashCode               Method
GetLifetimeService        Method
GetObjectData             Method
GetType                   Method
InitializeLifetimeService Method
MoveTo                    Method
Refresh                   Method
SetAccessControl          Method
ToString                  Method

檔案的方法。

TypeName: System.IO.FileInfo

Name                      MemberType
----                      ----------
AppendText                Method
CopyTo                    Method
Create                    Method
CreateObjRef              Method
CreateText                Method
Decrypt                   Method
Delete                    Method
Encrypt                   Method
Equals                    Method
GetAccessControl          Method
GetHashCode               Method
GetLifetimeService        Method
GetObjectData             Method
GetType                   Method
InitializeLifetimeService Method
MoveTo                    Method
Open                      Method
OpenRead                  Method
OpenText                  Method
OpenWrite                 Method
Refresh                   Method
Replace                   Method
SetAccessControl          Method
ToString                  Method

更新於: 2020 年 1 月 22 日

350 次觀看

開啟你的 事業

完成課程並獲得認證

開始


廣告
© . All rights reserved.