Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir.. i have a image path..like "~/photos/consultant/images.jpeg" i need to split and store string part "images.jpeg" in a variable.. how can i do it..
Posted

Check this out: Path.GetFileName Method[^]
 
Share this answer
 
try this.. :)

VB
Dim FileName As String = Path.GetFileName("~/photos/consultant/images.jpeg")


Path.GetFileName Method[^]

Visual Basic not recognizing Path.GetFileName Method[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900