I want to check for a folder from the registry. This codes works using the default location.
But when i try to use registry the code i get an error. I can't seem to figure out how to implement this so it uses the registry and i can include a folder name.
Would appreciate if someone can post a solution.....
Code:
tmp_exist = Folder.DoesExist("C:\\Program Files (x86)\\Microsoft Games\\Microsoft Flight Simulator X\\SimObjects") if tmp_exist == false then Screen.Jump("Wrong Location"); else
Code:
tmp_exist = Folder.DoesExist("Registry.GetValue(HKEY_CURRENT_USER, "Software\Microsoft\Microsoft Games\Flight Simulator\10.0", "AppPath", true) + \SimObjects")) if tmp_exist == false then Screen.Jump("Wrong Location"); else

Comment