Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Confirm folder exist from registry

$
0
0
I want to check for a folder from the registry. This codes works using the default location.

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
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.

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
Would appreciate if someone can post a solution.....

Viewing all articles
Browse latest Browse all 2105

Trending Articles