(Newbie) IO.Directory.Getfiles()

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

If I want to get the filename/extension only from any path returned (i.e.
C:\file.txt becomes file.txt), is there a more elegant way than using
InStrRev to extract everything after the last "\" in the path?

Thanks
 
* "Andy said:
If I want to get the filename/extension only from any path returned (i.e.
C:\file.txt becomes file.txt), is there a more elegant way than using
InStrRev to extract everything after the last "\" in the path?

Have a look at the 'System.IO.Path' class and its 'Get*' methods.
 
Back
Top