Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to display folder's filenames

Status
Not open for further replies.

Horowitz

Programmer
Jan 29, 2005
30
GR
hi,
We suppose that the folder "c:\MyFolder\" has some files and other folders in it such us "c:\MyFolder\Files\" etc...
ocould anybody write the code that will accept as a parameter a path and will diplay in a textbox all its files? (full pathname): eg. "c:\MyFolder\book1.xls" "c:\MyFolder\app.exe" "c:\MyFolder\Files\file1.doc" ...

SomeHow to "map" a folder

Tnx
 
Have a look in the System.IO.Directory namespace (specifically the GetFiles() method) and try it for yourself rather than ask someone to write the code for you.

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top