3
To return the value with the name of a folder in C#?
Example, if executed:
Directory.GetFiles("%PROGRAMFILES% (x86)\MyApp", "*.*", true);
And if he succeeds he returns like this:
%PROGRAMFILES% (x86)\MyApp\MyApp.exe
%PROGRAMFILES% (x86)\MyApp\MyApp.dll
And what I want is just to return in place of Myapp only \
.
Ex: \MyApp.exe
or \MyApp.dll
, instead of the path to the complete directory.
Did any help you more? You need something to be improved?
– Maniero