I am trying to update some local access databases from a web database. When I am accessing the web page, I want the user to select a folder on the local hard drive where the DB s reside that will be updated by the program. I actually have been using the File Upload control to do this as it has allowed me to check the file extensions on the local DB s their file size and other misc. items.
这抓住了档案名称的全部道路......
fileName = FileUploadAccess.PostedFile.FileName.ToLower
Now I have a need to capture the full path of the db s on the local hard drive. I can get the full path with the filename, but then I need to write a bunch of code to strip the filename from the path variable.
Is there a simple way to capture the path of the location the DB when the file location is selected, something like this....
Dim thePath As String = System.IO.Path.GetFullPath
感谢任何建议。