Refresh Folder in C#.net

Posted by Naraayanan under C# on 2/23/2012 | Points: 10 | Views : 10669 | Status : [Member] | Replies : 2
Hi,
I am working on Windows Application. So i need to refresh a folder at runtime.How to refresh a folder using C#.net? How can i achieve this?

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/



Responses

Posted by: Vuyiswamb on: 2/23/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
How do you display the Folder in your App ?

Thank you for posting at Dotnetfunda
[Administrator]

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naraayanan on: 2/24/2012 [Member] Starter | Points: 25

Up
0
Down
HI,
I know ,we can't view a folder in the windows Form.I used below cod. But it is not worked.Please help me .
       if (Directory.Exists(outputpath))

{
DirectoryInfo dir = new DirectoryInfo(outputpath);
dir.Refresh();
if (!File.Exists(currentfilename))
{
FileInfo filinfo = new FileInfo(currentfilename);
filinfo.Refresh();
}
}


Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response