0

Hi,

I am using a dialog box where user selects a XML file from the local drive. The selected file along with the folder path is displayed in a textbox on the form. The user can now edit the textbox. On click on 'Proceed' button, I am parsing that xml file.

Now if the user edits the folder path(gives a folder path which does not exist) the application throws an error. How to check wheteher that folder path exists in the local drive or not???.
If it does not exists then a message box with error message should be shown to the user.

Please help!....

Regards,
Dinil

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by dinilkarun
0

Dim fso As New FileSystemObject
dim Exists as boolean
Exists = fso.FolderExists(strFolderName)

if exists=True then
'the folder path exists
else
'does not exists
endif

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.