T
tshad
If I have a string with the whole path of a file, how do I get just the
path?
I can get the file by using Path.GetFile and the extension by
Path.GetExtension.
But I can't find anything to get get just the Path (like Path.GetPath).
Is there a way to do it without having to get the FileName and then use an
IndexOf on the filename and then substring to get the path?
Thanks,
Tom
path?
I can get the file by using Path.GetFile and the extension by
Path.GetExtension.
But I can't find anything to get get just the Path (like Path.GetPath).
Is there a way to do it without having to get the FileName and then use an
IndexOf on the filename and then substring to get the path?
Thanks,
Tom