日期:2014-05-18  浏览次数:20702 次

求助!~请大家帮帮忙!~~删除字符串啊!!!!
字符串如下:
D:\Basen\工作\质量检查\Data\I46\I46E003021\DLG\卫片\I46E003021.mdb

删除后为:I46\I46E003021\DLG\卫片\I46E003021.mdb

I46前的路径是不固定的!~




------解决方案--------------------
C# code
string strI46="D:\Basen\工作\质量检查\Data\I46\I46E003021\DLG\卫片\I46E003021.mdb ";
string strI46=strI46.substring(strI46.Indexof("\I46\")+1);

------解决方案--------------------
C# code

 string s = @"D:\Basen\工作\质量检查\Data\I46\I46E003021\DLG\卫片\I46E003021.mdb ";
 s = s.Substring(s.IndexOf("I46"));