Artikel ID: 244675 - Bekijk de producten waarop dit artikel van toepassing is.
Dit artikel is eerder gepubliceerd onder NL244675
IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.
The Microsoft Windows Script Host (WSH) is a tool that allows you to run Microsoft Visual Basic Scripting Edition and Microsoft JScript natively within the base operating system, either on Microsoft Windows 95 or Microsoft Windows NT 4.0. It also includes several COM automation methods that allow you to do several handy tasks easily through the Windows Script Host Object Model.
The Microsoft Windows Script Host is integrated in Windows 98. It is available for Windows NT 4.0 from within the Windows NT 4.0 Option Pack. It is also available for download from the following site:
Http://www.msdn.microsoft.com/scripting/The Windows Script Host provides several useful methods to read, write, and delete registry keys easily. The RegWrite function's third parameter allows the programmer to specify the type of data added to the registry. RegWrite supports strType as REG_SZ, REG_EXPAND_SZ, REG_DWORD and REG_BINARY. If another data type is passed as strType, RegWrite returns E_INVALIDARG.
WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT or Windows 2000, you should also update your Emergency Repair Disk (ERD).
The Microsoft Visual FoxPro code below demonstrates several examples of reading, writing, and deleting registry keys and values.
You can find the papers below on the following Web site:
Http://www.msdn.microsoft.com/scripting/White paper: Windows Script Host: A Universal Scripting Host for Scripting Languages
Technical Paper: Windows Script Host Programmer's Reference
For additional information about using Visual FoxPro and the Windows Script Host, please click the article numbers below to view the article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/244677/ )HOWTO: Create a Desktop Shortcut Using the Windows Script Host
(https://support.microsoft.com/kb/244676/ )HOWTO: Map, Delete and Enumerate Network Drives Using the Windows Script Host
Artikel ID: 244675 - Laatste beoordeling: donderdag 16 oktober 2003 - Wijziging: 1.0
De informatie in dit artikel is van toepassing op: