Truncate filename without regex??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I use a OpenFileDialog to open a file I get a filename:

OpenFileDialog1.FileName

It is a complete filespec including directories and drive.

Can a name only string be obtained withour regex.
 
mark said:
When I use a OpenFileDialog to open a file I get a filename:

OpenFileDialog1.FileName

It is a complete filespec including directories and drive.

Can a name only string be obtained withour regex.

'System.IO.Path.GetFileName'.
 
mark said:
When I use a OpenFileDialog to open a file I get a filename:

OpenFileDialog1.FileName

It is a complete filespec including directories and drive.

Can a name only string be obtained withour regex.


System.IO.Path.GetFileName


Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top