How to: Determine a Directory's Creation Time in Visual Basic
Thereturns a object that can be queried for information about the directory.
If the directory does not exist, an exception is not thrown until the first time a property on the DirectoryInfo object is accessed.
The options available in dialog boxes, and the names and locations of menu commands you see, might differ from what is described in Help, depending on your active settings or edition. This Help page was written with General Development Settings in mind. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see.
To determine a directory's creation time
Use the GetDirectoryInfo method to retrieve a DirectoryInfo object for the directory, and query theproperty. This example displays CreationTime for C:\Documents and Settings.
The following conditions may cause an exception:
The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\) ().
The path is not valid because it is Nothing ().
The path exceeds the system-defined maximum length ().
A file or directory name in the path contains a colon (:) or is in an invalid format ().
The user lacks the necessary permissions to view the path ().