hr培训:vb.net 取文件名

来源:百度文库 编辑:高考问答 时间:2024/05/01 05:50:01
我想做一个这样的函数。
取\以后的所有字符串
例如:
d:\123\123.exe
取123.exe请问怎样实现?谢谢

Dim fileinf As New System.IO.FileInfo("d:\123\123.exe")
MsgBox(fileinf.Name)