Hi,
How to get a path in a selected folder from folderbrowserdialog?
Example:
1) User select D:\Content\Data
2) Inside folder "Data" there's contain some files and folder
3) I check all the files contains in the directory and want to copy it to new destination. But failed
4) How to get the file path from the selected folder?
eg:
"D:\Content\Data\ABC.ai" and get "ABC.ai" only
"D:\Content\Data\Cfg.ini" and get "Cfg.ini" only
"D:\Content\Data\Debug\App.exe" and get "Debug\App.exe" only
"D:\Content\Data\Debug\DB.mdb" and get "Debug\DB.mdb" only
Assume Dim filename as String =
Because the destination path is given as "\\user-pc\files".So I want to use
Assume Dim strDestinationFolderPath as String =
So the copied code will be as below
My.Computer.FileSystem.CopyDirectory(fileName, strDestinationFolderPath & "\" filename & , True)