Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# directory file


string path=Application.StartupPath + "script";
string[] fileEntries = Directory.GetFiles(path);
foreach (string fileName in fileEntries)
{
  string name=Path.GetFileName(fileName);
  listBox1.Items.Add(name);

}
 
PREVIOUS NEXT
Tagged: #directory #file
ADD COMMENT
Topic
Name
3+8 =