Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Registry
Message
From
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:
00517779
Views:
16
>>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/.


>
>And the syntax examples should read:
>lc = lo.RegRead("HKLM\Software\Microsoft\...")
You can use both short or long
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform