I have the following location to an exe file stored in a string (extracted from the registry)
the location of the test.exe will always be in a folder called program.
I need to extract the directory location upto the program folder i.e. c:\test\home\files which is not always the same.
Any help would be much appriciated.