S sonu Sep 13, 2005 #1 I want to collect all the information about files inside folder on server. I am using web application Any help?
I want to collect all the information about files inside folder on server. I am using web application Any help?
G Guest Sep 13, 2005 #2 Hi sonu, you can use the System.IO.DirectoryInfo class: DirectoryInfo di = new DirectoryInfo(@"c:\somefolder"); FileInfo[] files = di.GetFiles(); you can then loop through all the files and do your processing. If you are on a web server you may want to use HttpServerUtility.MapPath to map virtual paths to actual locations on the hard disk. Hope that helps Mark R Dawson http://www.markdawson.org Hope that helps
Hi sonu, you can use the System.IO.DirectoryInfo class: DirectoryInfo di = new DirectoryInfo(@"c:\somefolder"); FileInfo[] files = di.GetFiles(); you can then loop through all the files and do your processing. If you are on a web server you may want to use HttpServerUtility.MapPath to map virtual paths to actual locations on the hard disk. Hope that helps Mark R Dawson http://www.markdawson.org Hope that helps