Nov 18, 2004 #1 belle9 Programmer Joined Nov 3, 2004 Messages 87 Location US I'm trying to get a filename without the extension. Any suggestions?
Nov 18, 2004 1 #2 bboffin Programmer Joined Nov 26, 2002 Messages 553 Location 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 Joined Nov 3, 2004 Messages 87 Location 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))