If your downloading a file from a specified URL then this can get the filename from url.
VB.NET Code:
Public Function GetFileNameFromURL(ByVal URL As String) As String Try Return URL.Substring(URL.LastIndexOf("/") + 1) Catch ex As Exception Return URL End Try End Function




)
Reply With Quote