Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Visual.FoxPro.Application.6] @="Microsoft Visual FoxPro Application" "EditFlags"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Visual.FoxPro.Application.6] @="Microsoft Visual FoxPro Application" "EditFlags"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\VFPODBC\Q326568] "Description"="Microsoft ODBC Driver QFE Q326568" "Type"="Update" "Installed"=dword:00000001>Thanks, Sergey. That certainly is a relevant reference, but I guess the original question never got resolved. My preference would be to avoid any WSH dependence by using some simple API calls. I assume the essential logic boils down to making a substitution for these 2 lines:
>=oshell.RegWrite("HKEY_CLASSES_ROOT\Visual.FoxPro.Application.6\EditFlags",0,"REG_DWORD") >=oshell.RegWrite("HKEY_LOCAL_MACHINE\Software\Classes\Visual.FoxPro.Application.6\EditFlags",0,"REG_DWORD") >>