I have the following scenario:
I have a directory name : Management Server
I need to find out through code where this directory is whether it is in Program Files or Program Files (x86) or on another drive on the computer
Is there a way to do this?
Thanks in advance!
why dont you use
string l_dir = Directory.GetDirectories API to search out the reqd directory.
Do you know the program which created that directory? If not, you could follow the "Solution" described by nitin-aem which might take a very long time to execute...
But if you know it, find out
(1) that that program is installed (otherwise that folder won't exist)
(2) how that program stores its settings (some ini files, xml files, registry keys etc...) and read it from their settings
With a newer version of that program, things may change...
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)