How to return the value with the name of a folder in C #?
Example, if I execute:
Directory.GetFiles("%PROGRAMFILES% (x86)\MyApp", "*.*", true);
And if you can do it, it returns like this:
%PROGRAMFILES% (x86)\MyApp\MyApp.exe
%PROGRAMFILES% (x86)\MyApp\MyApp.dll
And what I want is to just return in place of MyApp only \
.
Ex: \MyApp.exe
or \MyApp.dll
instead of the path to the complete directory.