Imports System.IO Module Module1 Sub Main() Dim mypath As String = "c:\temp\123.txt" Dim myfilename = Path.GetFileNameWithoutExtension(mypath) Console.WriteLine(myfilename) End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)