Filename
-
Hello, I have the following problem: I have a file path like this: "C:\Program Files\MyProgram\Myfile.ext" How can I remove the path and only keep the file name, in this case "Myfile"? (I don't want the ".ext" behind it) Can someone help me please? Thanks, :-D Zaegra
-
Hello, I have the following problem: I have a file path like this: "C:\Program Files\MyProgram\Myfile.ext" How can I remove the path and only keep the file name, in this case "Myfile"? (I don't want the ".ext" behind it) Can someone help me please? Thanks, :-D Zaegra
Read up on the Path class. :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.
-
Read up on the Path class. :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.