Nov 18, 2004 #1 belle9 Programmer Nov 3, 2004 87 US I'm trying to get a filename without the extension. Any suggestions?
Nov 18, 2004 1 #2 bboffin Programmer Nov 26, 2002 553 GB Try sFilename = Path.GetFilenameWithoutExtension(sFilePath) Yes it really is that simple Bob Boffin Upvote 0 Downvote
Nov 18, 2004 Thread starter #3 belle9 Programmer Nov 3, 2004 87 US LOL! I worked it out this way: Dim n Dim o n = newname.Length o = (objFile.Extension.Length) newname = newname.Substring(0, (n - o)) Upvote 0 Downvote
LOL! I worked it out this way: Dim n Dim o n = newname.Length o = (objFile.Extension.Length) newname = newname.Substring(0, (n - o))