I am using Path.GetDirectoryName(fpath) to get me the full path of the file
but what I want to do is just grab the directory from a particular sub direcorty onwards
and also grab the last directory
se using the example below I currently get :
dpath = Path.GetDirectoryName(fpath);
gives me ...
"C:\\Users\\Documents\\Visual Studio 2008\\Projects\\MeasurLink7\\Mitutoyo.MeasurLink.RealTime"
but what I want is
1) from Projects onwards --
dpath1 = "\\MeasurLink7\\Mitutoyo.MeasurLink.RealTime"
2 the last directory
dpath2 = "\\Mitutoyo.MeasurLink.RealTime"
any help would be appreciated