File, Directory, and Drive Properties in Visual Basic
This section contains topics about getting and setting file, directory, and drive properties.
In This Section
How to: Get Information About a File in Visual Basic
Demonstrates how to get information, such as last access time, about a file.How to: Determine the Absolute Path of a File in Visual Basic
Demonstrates how to determine the absolute path of a file.How to: Determine a File's Extension in Visual Basic
Demonstrates how to determine the extension of a file.How to: Determine a File's Last Accessed Time in Visual Basic
Demonstrates how to determine the last time a file was accessed.How to: Determine a File's Last Modified Time in Visual Basic
Demonstrates how to determine the last time a file was modified.How to: Determine a File's Size in Visual Basic
Demonstrates how to determine a file's size in bytes.How to: Determine a File's Creation Time in Visual Basic
Demonstrates how to determine when a file was created.How to: Determine if a File is Hidden in Visual Basic
Demonstrates how to determine if a file is hidden.How to: Determine if a File is Read-only in Visual Basic
Demonstrates how to determine if a file is read-only.How to: Determine a File's Attributes in Visual Basic
Demonstrates how to determine a file's attributes.How to: Determine a Directory's Creation Time in Visual Basic
Demonstrates how to determine when a directory was created.How to: Determine if a Directory is Read-Only in Visual Basic
Demonstrates how to determine whether a directory is read-only.How to: Determine a Directory's Attributes in Visual Basic
Demonstrates how to determine a directory's attributes.How to: Determine if a File Exists in Visual Basic
Demonstrates how to determine whether a file exists.How to: Determine if a Directory Exists in Visual Basic
Demonstrates how to determine whether a directory exists.How to: Determine a Drive's Volume Label in Visual Basic
Demonstrates how to determine a drive's volume label.How to: Determine a Drive's Format in Visual Basic
Demonstrates how to determine a drive's file-system type.How to: Determine a Drive's Type in Visual Basic
Demonstrates how to determine a drive's type.How to: Determine a Drive's Total Space in Visual Basic
Demonstrates how to determine a drive's total space.How to: Determine a Drive's Physical Free Space in Visual Basic
Demonstrates how to determine a drive's physical free space.How to: Determine a Drive's Root Directory in Visual Basic
Demonstrates how to determine a drive's root directory.How to: Determine the Windows System Directory in Visual Basic
Demonstrates how to determine the location of the Windows System directory.
Reference
My.Computer.FileSystem Object
Describes the My.Computer.FileSystem object and its methods and properties.My.Computer.FileSystem.DirectoryExists Method
Describes the DirectoryExists method.My.Computer.FileSystem.FileExists Method
Describes the FileExists method.My.Computer.FileSystem.GetDirectoryInfo Method
Describes the GetDirectoryInfo method.My.Computer.FileSystem.GetFileInfo Method
Describes the GetFileInfo method.My.Computer.FileSystem.GetParentPath Method
Describes the GetParentPath method.
Related Sections
DirectoryInfo
Describes the DirectoryInfo object.FileAttributes
Describes the FileAttributes enumeration.Writing to Files in Visual Basic
Lists tasks involving writing to files.Reading from Files in Visual Basic
Lists tasks involving reading from files.Creating, Deleting, and Moving Files and Directories in Visual Basic
Lists tasks involving creating, deleting, and moving directories and files.