vb.net - How to remove extensions from ListBox -
i have piece of code searches shortcuts , puts them listbox. how can modify in order display information without .lnk
extension
for each foundfile string in my.computer.filesystem.getfiles("z:\siteservices\maintenance\maintenance support folder\equipment specific information\des", microsoft.visualbasic.fileio.searchoption.searchtoplevelonly, "*" & txtsearch.text & "*" & ".lnk") listbox1.items.add(foundfile) next
have @ usinng path.getfilenamewithoutextension method
returns file name of specified path string without extension.
Comments
Post a Comment