I am trying to get the enclosing directory from a path:
DsVersions.ASSEMBLY2Row row = dsVersions.ASSEMBLY2.NewASSEMBLY2Row();
row.FOLDER = Path.GetDirectoryName(fileName);
What I get is the full path:
@"C:\Program Files (x86)\EdisonFactory\NetOffice\Plugins"
And what I need is just Plugins.
I think that I need to use Substring but I am not sure where or how.
You could use
DirectoryInfofor help: