FileInfo fno = new FileInfo("c:\\x.name.txt"); MessageBox.Show(fno.Name.Replace(fno.Extension, ""));
var name = file.substr(0, file.lastIndexOf('.'));
function getFileNameOnly() { var fileName = document.getElementById("txtFileName").value; //get file name var ext = fileName.substr(fileName.lastIndexOf('.') + 1); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)