Get path of a network drive folders

2k views Asked by At

I am trying access files within a folder of a network drive using c# FolderBrowserDialog, all it shows me are the local drives and the network drives on my computer.

Is there a way of getting access to folders of a network drive? I am using a UNC path for this:

\\\\servername\\folder\\subfolder

I know that there is a way to get the selected path

FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.SelectedPath = "C:\\Test\\";
fbd.ShowDialog();

Would this enable me to see the network drive folders? Any help on this is most welcome

1

There are 1 answers

1
thomas On

Have you tried something like this:

Directory.GetFiles(@"\\10.0.0.1\myFolder\test\")