hai all,
by using the following code is it possible to get check a folder is present in a system in the network?
string fold=@\\server-name\system-name\folder-name;
if (System.IO.Directory.Exists(fold)){}
its not working for me... am i doing correct?
Bhakeeswaran ThulasingamPosted Jul 29, 2006, 5:10 AM
Make sure the folder is a shared folder. Find the code snippet below which works.
if
(System.IO.Directory.Exists(@\\pc2151\Share\Bin)){
Console.WriteLine("Exists");
if(System.IO.File.Exists(@\\pc2151\Share\Bin\ReadMe.txt))
{
//do some stuff
}
}