从路径中获取文件名的最简单方法是什么?
string filename = "C:\\MyDirectory\\MyFile.bat"
在这个例子中,我应该得到"MyFile“。不带扩展名。
https://stackoverflow.com/questions/8520560
相似问题