“C:\Users\Administrator\Desktop\Jinglun255-12.zip”为字符串
高手能不能帮本人截出C:\Users\Administrator\Desktop
高手能不能帮本人截出C:\Users\Administrator\Desktop
解决方案
20
string path = “C:\Users\Administrator\Desktop\Jinglun255-12.zip”;
path = path.Substring(0, path.LastIndexOf(“\”));
path = path.Substring(0, path.LastIndexOf(“\”));