Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在使用子字符串时遇到了一些麻烦。我正在尝试从字符串中删除“\”,但我尝试了很多不同的东西。
例如。
C:\Program Files\Internet Explorer\iexplore.exe
我试图以 iexplore.exe 结束
有什么建议么??
System.IO.Path.GetFileName 怎么样:
System.IO.Path.GetFileName(@"C:\Program Files\Internet Explorer\iexplore.exe")