![]() This approach does not require the creation of a DirectoryInfo object, and can be used with a full path: My.("C:\Temp\SubDir") ![]() In the following example a subdirectory named TempSubDir is created in the C:\Temp directory: Dim tmpDir As New IO.DirectoryInfo("C:\Temp")Īnother approach is to create a directory using the CreateDirectory() method. The DirectoryInfo class constructor takes a directory path as the sole parameter. One particularly useful method of the DirectoryInfo class is CreateSubdirectory() which, as the name suggests, is used to create new subdirectories. Creating and Removing a Directory In Visual Basicĭirectory level activities in a Visual Basic application are performed by utilizing the DirectoryInfo class.
0 Comments
Leave a Reply. |