here are 2 different options
-----------------------
string FilePath = "c:\\hello.exe";
// option 1
System.IO.FileInfo fi = new System.IO.FileInfo(FilePath);
this.textBox1.Text = fi.Extension ;
// option 2
this.textBox2.Text = FilePath.Substring(FilePath.LastIndexOf("."));
--------------------------
"genc ymeri" <ge********@hotmail.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
Hi,
How can I get the extention name of one file when I have a file list ?
Thanks.