Skip to Content
Microsoft® Windows® Scripting Self-Paced Learning Guide
book

Microsoft® Windows® Scripting Self-Paced Learning Guide

by Ed Wilson
April 2004
Beginner
416 pages
11h 3m
English
Microsoft Press
Content preview from Microsoft® Windows® Scripting Self-Paced Learning Guide

Lab 39 Importing the Metabase

In this lab, you will import the metabase that was exported in Lab 38.

Lab Instructions

  1. Open Notepad.exe.

  2. On the top of a blank page, set Option Explicit.

  3. Save your file as Lab39Solution.vbs.

  4. Declare the following variables: strPassword, strFilePath, strMetabasePath, intFlags, locatorObj, providerObj, and computerObj. Your completed Header information section will look like the following:

    Option Explicit
    Dim strPassword
    Dim strFilePath
    Dim strSourceMetabasePath
    Dim strDestinationMetabasePath
    Dim intFlags
    Dim locatorObj
    Dim providerObj
    Dim computerObj
  5. Create four constants to control the import behavior. CONST IMPORT_CHILDREN = 0 recursively imports the subkeys of the specified key; CONST IMPORT_INHERITED =1 imports the inherited ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows® 2000 Scripting Guide

Microsoft® Windows® 2000 Scripting Guide

Microsoft Corporation
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Publisher Resources

ISBN: 9780735619814Supplemental ContentCatalog PageErrata