666wicked666
New Member
I need to create a small C# console application to run a report on a directory on my local computer. The report will be an excel document and contain 3 columns including: The name of each folder in the column, if the folder contains any data, if the folder contains data when was it last updated. My current thinking is a small C# console application that reads the directory goes through each folder and performs these tests creating a row at a time. I am fairly new to C# and not sure how I can carry this out. I have tried the following code: \[code\]static void Main(string[] args) { string[] filePaths = Directory.GetFiles(@"C:/TestFolder/"); foreach (string value in filePaths) { Console.WriteLine(value); } }\[/code\]Thanks