可能重复:
How to select only hidden folder from String[]?如何从字符串数组得到隐藏的文件夹
folderBrowserDialog1.Reset();
folderBrowserDialog1.ShowDialog();
if (folderBrowserDialog1.SelectedPath != "")
{
sourcetxt.Text = folderBrowserDialog1.SelectedPath;
string[] path = Directory.GetDirectories(folderBrowserDialog1.SelectedPath);
}
我是写这篇code.i必须获得并隐藏所有文件夹这个数组名称的文件夹的路径。但我想只获得这个数组的隐藏文件夹(数组名称pa th)。请解决这个问题任何一个。
Thankig您。
你已经在这里问这个问题http://stackoverflow.com/questions/2935293/how-to-select-only-hidden-folder-from-string/2935311。也许你可以澄清你的原始问题,而不是再次问同样的问题? – 2010-05-29 16:11:34