EvilAlchemist
2[H]4U
- Joined
- Jan 11, 2008
- Messages
- 2,730
Hey Guys,
I am totally blanking on how to get this code working.
I am trying to list the files in the directory --> List the last 10 Created --> Open User Selected file.
I need some help with the last 10 created part and opening the user selected file
I have the files listing .. but not in the correct order or limiting it to the last ten files
I am totally blanking on how to get this code working.
I am trying to list the files in the directory --> List the last 10 Created --> Open User Selected file.
I need some help with the last 10 created part and opening the user selected file
I have the files listing .. but not in the correct order or limiting it to the last ten files
Code:
var pdfFiles = new DirectoryInfo("\\\\MPPDSERVER\\Forms\\CAD Reports").GetFiles("*.pdf");
for (int i = 0; i < pdfFiles.Length; i++)
{
CADList.Items.Add(pdfFiles[i]);
}
}
Last edited: