Windows.XP.in.a.Nutshell.1002005.2Ed [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Windows.XP.in.a.Nutshell.1002005.2Ed [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







9.6. Object Model



WSH includes a number of
objects that provide access to Windows system-related operations.
Table 9-6 lists the main objects and the
operations they perform.

Table 9-6. WSH objects and their functionality

Object


Functionality provided


Wscript


Create new objects, output data, and process command-line arguments


WSHShell


Registry, shortcut, and environment variable manipulation; ability to
execute external executables


WSHNetwork


Network directory and printer resource enumeration and manipulation


FileSystem


Text file manipulation and file maintenance operations such as
creating, deleting, and moving files

The main objects expose additional objects. For example, the
FileSystem object exposes a
Drives collection object. These objects and their
uses are covered next.


The object reference presented in this chapter covers the most
important features of the objects listed in Table 9-6, but is not a complete reference. For more
information, see Section 9.2,
earlier in this chapter.


9.6.1. Conventions


The next section provides a reference to the core WSH objects,
describing their methods and properties.

Like the rest of this book, the convention for the
objects' methods is that any parameter surrounded by
square brackets is optional. For example, in the syntax for the
method PrintName:

PrintName strName, [strAddress]

the strName parameter is required, but the
strAddress parameter is optional since
it's surrounded with square brackets. Words in
monospace are to be typed exactly as shown, but
italicized words are to be replaced with
your own values.


/ 239