File modification time: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 1,024: | Line 1,024: | ||
LastAccessTimeUtc |
LastAccessTimeUtc |
||
CreationTimeUtc |
CreationTimeUtc |
||
===Additional Information=== |
|||
PowerShell provides rich access to properties and methods. Use <code>Get-Member</code> to find what you want. |
|||
<lang PowerShell> |
|||
Get-ChildItem -Path .\file.txt | Get-Member |
|||
</lang> |
|||
{{Out}} |
|||
<pre> |
|||
TypeName: System.IO.FileInfo |
|||
Name MemberType Definition |
|||
---- ---------- ---------- |
|||
LinkType CodeProperty System.String LinkType{get=GetLinkType;} |
|||
Mode CodeProperty System.String Mode{get=Mode;} |
|||
Target CodeProperty System.Collections.Generic.IEnumerable`1[[System.String, mscorlib, Version=4.0.0.0, Cultu... |
|||
AppendText Method System.IO.StreamWriter AppendText() |
|||
CopyTo Method System.IO.FileInfo CopyTo(string destFileName), System.IO.FileInfo CopyTo(string destFile... |
|||
Create Method System.IO.FileStream Create() |
|||
CreateObjRef Method System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType) |
|||
CreateText Method System.IO.StreamWriter CreateText() |
|||
Decrypt Method void Decrypt() |
|||
Delete Method void Delete() |
|||
Encrypt Method void Encrypt() |
|||
Equals Method bool Equals(System.Object obj) |
|||
GetAccessControl Method System.Security.AccessControl.FileSecurity GetAccessControl(), System.Security.AccessCont... |
|||
GetHashCode Method int GetHashCode() |
|||
GetLifetimeService Method System.Object GetLifetimeService() |
|||
GetObjectData Method void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Se... |
|||
GetType Method type GetType() |
|||
InitializeLifetimeService Method System.Object InitializeLifetimeService() |
|||
MoveTo Method void MoveTo(string destFileName) |
|||
Open Method System.IO.FileStream Open(System.IO.FileMode mode), System.IO.FileStream Open(System.IO.F... |
|||
OpenRead Method System.IO.FileStream OpenRead() |
|||
OpenText Method System.IO.StreamReader OpenText() |
|||
OpenWrite Method System.IO.FileStream OpenWrite() |
|||
Refresh Method void Refresh() |
|||
Replace Method System.IO.FileInfo Replace(string destinationFileName, string destinationBackupFileName),... |
|||
SetAccessControl Method void SetAccessControl(System.Security.AccessControl.FileSecurity fileSecurity) |
|||
ToString Method string ToString() |
|||
PSChildName NoteProperty string PSChildName=RosettaCodeTempate.txt |
|||
PSDrive NoteProperty PSDriveInfo PSDrive=C |
|||
PSIsContainer NoteProperty bool PSIsContainer=False |
|||
PSParentPath NoteProperty string PSParentPath=Microsoft.PowerShell.Core\FileSystem::C:\Users\Owner |
|||
PSPath NoteProperty string PSPath=Microsoft.PowerShell.Core\FileSystem::C:\Users\Owner\RosettaCodeTempate.txt |
|||
PSProvider NoteProperty ProviderInfo PSProvider=Microsoft.PowerShell.Core\FileSystem |
|||
Attributes Property System.IO.FileAttributes Attributes {get;set;} |
|||
CreationTime Property datetime CreationTime {get;set;} |
|||
CreationTimeUtc Property datetime CreationTimeUtc {get;set;} |
|||
Directory Property System.IO.DirectoryInfo Directory {get;} |
|||
DirectoryName Property string DirectoryName {get;} |
|||
Exists Property bool Exists {get;} |
|||
Extension Property string Extension {get;} |
|||
FullName Property string FullName {get;} |
|||
IsReadOnly Property bool IsReadOnly {get;set;} |
|||
LastAccessTime Property datetime LastAccessTime {get;set;} |
|||
LastAccessTimeUtc Property datetime LastAccessTimeUtc {get;set;} |
|||
LastWriteTime Property datetime LastWriteTime {get;set;} |
|||
LastWriteTimeUtc Property datetime LastWriteTimeUtc {get;set;} |
|||
Length Property long Length {get;} |
|||
Name Property string Name {get;} |
|||
BaseName ScriptProperty System.Object BaseName {get=if ($this.Extension.Length -gt 0){$this.Name.Remove($this.Nam... |
|||
VersionInfo ScriptProperty System.Object VersionInfo {get=[System.Diagnostics.FileVersionInfo]::GetVersionInfo($this... |
|||
</pre> |
|||
=={{header|PureBasic}}== |
=={{header|PureBasic}}== |