For example, the file Form1.vb may not be a Visual Basic source file. drag an image from the desktop into the application and messagebox up the local path of the image. Use the DirectoryName and Name properties of the FileInfo object to determine a file's name and path. This example determines the name and path and displays them. To combine a file's name and directory to create the full path TestFile = My.("C:\TestFolder1\test1.txt")ĭim folderPath As String = testFile.DirectoryName NET IDE, do the following: after creating a new project, right-click on the project name within the Solution Explorer, select 'Add Reference', select the 'COM' tab, find and select the 'Windows Script Host Object Model' in the listbox, click 'Select', and then click 'OK'. FolderPath oFileLocations.Workspace
0 Comments
Leave a Reply. |