Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Registry
Message
 
To
11/06/2001 10:41:19
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00517717
Message ID:
00517791
Views:
17
>>>You can use The windows scripting host as long as you have IE4 installed.
>>>lo = CREATEOBJECT("WScript.Shell")
>>>lc = lo.RegRead("HKEY_LOCAL_MACHINE\Software\Microsoft\...")
>>>OR
>>>lo.RegWrite(("HKEY_LOCAL_MACHINE\Software\Microsoft\...", anyValue [,strType])
>>>where strType can be REG_SZ, REG_EXPAND_SZ, REG_DWORD, and REG_BINARY
>>
>>No, it isn't IE4. It's the Windows Script Host that has to be installed. It's an optional component under Win98, but can be downloaded and installed from MS. It's freely re-distributable.
>WSH Installation
>You must install Microsoft Internet Explorer version 3.0 or later to use Windows Scripting Host. WSH relies on the Visual Basic Script and Java Script engines provided with Internet Explorer 3.0 or later. WSH is installed as part of Windows 98, Windows 2000, and Internet Information Services 4.0. A separate setup program is provided for Windows 95.



>Windows 95 Operating System
>To install WSH on a Windows 95–based system, install Microsoft Internet Explorer version 3.0 or later if you have not already done so. If you do not have Internet Explorer 3.0 or later, see the Microsoft IE Web page at www.microsoft.com/windows/ie/.
>

Win95 has to be OSR 2 or later. From my VFUG article:

"The WSH was an optional component in Win98, and NT Option Pack 4. Version 2.0 comes with Windows 2000. It is also installed as a standard component of Internet Explorer 4 and 5, and can be added to any of the Win32 operating system environments, with the notable exceptions of Win32S run on top of Windows 3.1x or Windows for WorkGroups, Windows CE, Windows NT 3.51 and original retail distributions of Windows 95 and Windows NT 4.0 that have not applied the appropriate Service Packs installed. In the case of Windows 95, you must have OSR 2 or Internet Explorer version 4 or later installed, or, at a minimum, have successfully installed DCOM. International versions of Win95 require that you have installed at least Internet Explorer version 3.02 and DCOM, and in the case of Windows NT 4.0, NT Service Pack 3 and Internet Explorer 3.02 or later. In the case of NT 4.0, installation of current Service Packs (SP5, SP6 or SP6a) will include the necessary DCOM components without having installed Internet Explorer."

Currently, Version 5.5 is not downloadable. You have to get either 5.1 or the 5.6 beta.

>>
>>And the syntax examples should read:
>>lc = lo.RegRead("HKLM\Software\Microsoft\...")
>You can use both short or long

Thanks for the info, but I'll stick with the short hand.< s >
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform