This example determines the name and path and displays them. Use the DirectoryName and Name properties of the FileInfo object to determine a file's name and path. For example, the file Form1.vb may not be a Visual Basic source file. The GetFileInfo method returns a FileInfo object that can be queried to determine the file's properties, such as its name and path.ĭo not make decisions about the contents of the file based on the file name extension. The GetParentPath method returns the absolute path of the parent of the provided path. The CombinePath method takes two paths and returns a properly formatted combined path. The FileSystem object offers a number of useful methods when parsing file paths.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |