C# - How to extract the file name and extension from a path?

后端 未结 3 1742
暖寄归人
暖寄归人 2020-12-05 02:45

So, say I have

string path = \"C:\\\\Program Files\\\\Program\\\\File.exe\";

How do I get only \"File.exe\"? I was thinking something with

3条回答
提交回复
热议问题