Wscript.Shell Object Detailed Introduction!!

Source: Internet
Author: User
WshShell objects
ProgID Wscript.Shell
FileName Wshom.ocx
CLSID f935dc22-1cf0-11d0-adb9-00c04fd58a0b
IID f935dc21-1cf0-11d0-adb9-00c04fd58a0b
The following table describes the properties associated with the WshShell object.
Attribute description
Environment returns the Wshenvironment collection object.
Specialfolders uses the Wshspecialfolders object to provide access to Windows shell folders, such as Desktop folders, Start menu folders, and personal documents folders.

The following table describes the methods associated with the WshShell object.
Method description
CreateShortcut creates and returns a Wshshortcut object.
ExpandEnvironmentStrings expands the PROCESS environment variable and returns the result string.
Popup displays the message window that contains the specified message.
RegDelete deletes the specified key or value from the registry.
RegRead returns the specified key or value from the registry.
RegWrite sets the specified key or value in the registry.
Run creates a new process that executes the specified command with the specified window style.
Wshshell.environment
The Environment property returns the Wshenvironment object.
Grammar
Wshshell.environment ([strtype]) = Objwshenvironment

Comments
If the strtype specifies where the environment variable is located, the value may be "System", "User", "Volatile", and "Process". If Strtype is not provided, the method retrieves the system environment variable in Windows NT or retrieves the process environment variable in Windows 95.
Only "Process" is supported for Windows 95,strtype parameters.
The following variables are provided by the Windows operating system. Scripts can also get environment variables that are set by other applications.
Name Description
Number_of_processors the number of processors running on the computer.
Processor_architecture the type of processor used by the user station.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.