Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: FileInfo System.IO.FileInfo Attributes
fn = AskFileName( 'Choose any file', 'c:\', '', '', 1 ) ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ; Create a class implemented by a managed assembly. ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ objFileInfoClass = ObjectClrNew("System.IO.FileInfo", fn) Attributes = objFileInfoClass.Attributes; Gets or sets the attributes for the current file or directory. (Inherited from FileSystemInfo.) CreationTime = objFileInfoClass.CreationTime; Gets or sets the creation time of the current file or directory. (Inherited from FileSystemInfo.) CreationTimeUtc = objFileInfoClass.CreationTimeUtc; Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory. (Inherited from FileSystemInfo.) objDirectory = objFileInfoClass.Directory; Gets an instance of the parent directory. DirectoryName = objFileInfoClass.DirectoryName; Gets a string representing the directory's full path. Exists = objFileInfoClass.Exists; Gets a value indicating whether a file exists. (Overrides FileSystemInfo.Exists.) Extension = objFileInfoClass.Extension; Gets the string representing the extension part of the file. (Inherited from FileSystemInfo.) FullName = objFileInfoClass.FullName; Gets the full path of the directory or file. (Inherited from FileSystemInfo.) IsReadOnly = objFileInfoClass.IsReadOnly; Gets or sets a value that determines if the current file is read only. LastAccessTime = objFileInfoClass.LastAccessTime; Gets or sets the time the current file or directory was last accessed. (Inherited from FileSystemInfo.) LastAccessTimeUtc = objFileInfoClass.LastAccessTimeUtc; Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed. (Inherited from FileSystemInfo.) LastWriteTime = objFileInfoClass.LastWriteTime; Gets or sets the time when the current file or directory was last written to. (Inherited from FileSystemInfo.) LastWriteTimeUtc = objFileInfoClass.LastWriteTimeUtc; Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to. (Inherited from FileSystemInfo.) Length = objFileInfoClass.Length; Gets the size, in bytes, of the current file. Name = objFileInfoClass.Name; Gets the name of the file. (Overrides FileSystemInfo.Name.)
Article ID: W17820
Filename: FileInfo.txt
File Created: 2019:09:18:11:09:32
Last Updated: 2019:09:18:11:09:32