Windows Script Host Object Model이다.

MSDN에서 퍼온 내용. 

....................................................

 

The Windows Script Host object model consists of 14 objects. The root object is the WScript object.

The illustration that follows represents the Windows Script Host Object Model hierarchy. Click an object in the diagram to see its associated Help topic.

 

 

The Windows Script Host object model provides a logical, systematic way to perform many administrative tasks. The set of COM interfaces it provides can be placed into two main categories:

  • Script Execution and Troubleshooting

    This set of interfaces allows scripts to perform basic manipulation of the Windows Script Host, output messages to the screen, and perform basic COM functions such as CreateObject and GetObject.

  • Helper Functions

    Helper functions are properties and methods for performing actions, such as mapping network drives, connecting to printers, retrieving and modifying environment variables, and manipulating registry keys. Administrators can also use the Windows Script Host helper functions to create simple logon scripts.

WSH Objects and Associated Tasks

The following table is a list of the WSH objects and the typical tasks associated with them.

ObjectWhat you can do with this object
Wscript
  • Set and retrieve command line arguments
  • Determine the name of the script file
  • Determine the host file name (wscript.exe or cscript.exe)
  • Determine the host version information
  • Create, connect to, and disconnect from COM objects
  • Sink events
  • Stop a script's execution programmatically
  • Output information to the default output device (for example, a dialog box or the command line)
WshArgumentsAccess the entire set of command-line arguments
WshNamedAccess the set of named command-line arguments
WshUnnamedAccess the set of unnamed command-line arguments
WshNetwork
  • Connect to and disconnect from network shares and network printers
  • Map and unmap network shares
  • Access information about the currently logged-on user
WshControllerCreate a remote script process using the Controller method CreateScript()
WshRemote
  • Remotely administer computer systems on a computer network
  • Programmatically manipulate other programs/scripts
WshRemote ErrorAccess the error information available when a remote script (a WshRemote object) terminates as a result of a script error
WshShell
  • Run a program locally
  • Manipulate the contents of the registry
  • Create a shortcut
  • Access a system folder
  • Manipulate environment variables (such as WINDIR, PATH, or PROMPT)
WshShortcutProgrammatically create a shortcut
WshSpecialfoldersAccess any of the Windows Special Folders
WshURLShortcutProgrammatically create a shortcut to an Internet resource
WshEnvironmentAccess any of the environment variables (such as WINDIR, PATH, or PROMPT)
WshScriptExecDetermine status and error information about a script run with Exec()

Access the StdIn, StdOut, and StdErr channels

 

In addition to the object interfaces provided by Windows Script Host, administrators can use any ActiveX control that exposes automation interfaces to perform various tasks on the Windows platform. For example, administrators can write scripts to manage the Windows Active Directory Service Interface (ADSI).

이올린에 북마크하기(0) 이올린에 추천하기(0)

트랙백 보낼 주소 :: 이 글에는 트랙백을 보낼 수 없습니다

댓글을 달아주세요:: 네티켓은 기본, 스팸은 사절

[로그인][오픈아이디란?]


BLOG main image
열정은 동사다. by 無聲呼人

카테고리

All that my life (387)
Notice (3)
Monologue (215)
책, 영화 그리고 음악 (15)
내가 보는 세상 (22)
I like computer (110)
WishList (9)

글 보관함

달력

«   2009/01   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Statistics Graph