String SaveGameFolder = "";
String tmp;
RegistryKey reg = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\DirectPlay\Applications\Age of Empires II - The Conquerors Expansion");
if (reg != null) {
tmp = reg.GetValue("CurrentDirectory", "").ToString();
if (tmp != "") {
SaveGameFolder = tmp + "\\SaveGame";
}
}
if (SaveGameFolder!="") {
// Found...
}
Wow u did it in VBtnx PKZ I made the program in the Visual Basic, I thought about this way of reading registry. Only problem was because many of users dont have aoc installed regularly. Many of them have riped torrents and self extraction packs. So, the way I used in this case was to pick folder, well I could be made in better way, combining both methods... maybe I lack with ideas in that time