Wsh Script Host
Main wscript object
Wscript. Echo wscript. buildversion 'wsh Script Host generation version numberWscript. Echo wscript. fullname 'returns the path where the wscript or cscript Script Host is located.Wscript.
Wshshell objectProgid wscript. ShellFile Name wshom. ocxCLSID F935DC22-1CF0-11d0-ADB9-00C04FD58A0BIID F935DC21-1CF0-11d0-ADB9-00C04FD58A0B
The following table describes the properties related to the wshshell object.Attribute descriptionEnvironment returns the wshenvironment collection object.Specialfolders uses the wshspecialfolders object to provide access to Windows Shell Folders, such as desktop folders,
Category: Program
WshShell object
ProgID Wscript. Shell
File Name WSHom. Ocx
CLSID F935DC22-1CF0-11d0-ADB9-00C04FD58A0B
IID F935DC21-1CF0-11d0-ADB9-00C04FD58A0B
The following table describes the properties related to the WshShell object.
Attribute descriptionEnvironment returns the WshEnvironment collection object.SpecialFolders uses the WshSpecialFolders
The WshShell object ProgIDwscript. shell file name WSHom. OcxCLSIDF935DC22-1CF0-11d0-ADB9-00C04FD58A0BIIDF935DC21-1CF0-11d0-ADB9-00C04FD58A0B The following table describes the properties related to the WshShell object. Attribute description Environment returns the WshEnvironment collection object. SpecialFolder
WshShell objectProgID
1. wscript. shell (Windows Script Host Runtime Library) is an object corresponding to c: \ windows \ system32 \ wshom. OCX, wscript. shell is a component used by the server system. Shell is the meaning of "shell". This object can perform common operations on the operating system shell, such as running
Program , Read a
The following table describes the methods related to the wshurlshortcut object.
Method descriptionSave saves the shortcut to the specified file system.
Wshurlshortcut. fullnameThe fullname attribute provides the complete path of the shortcut object.
SyntaxWshurlshortcut. fullname = strfullname
Wshurlshortcut. targetpathThe targetpath attribute provides the target path of the shortcut
The special folder name is used to index the set to retrieve the required special folders. The following special folders are listed in the document:
AllusersdesktopAllusersstartmenuAllusersprogramsAllusersstartupDesktopFavoritesFontsMydocumentsNethoodPrinthoodProgramsRecentSendtoStartmenuStartupTemplatesHowever, when I used ollydbg to debug vbs today, I found that there was less than one appdata folder in the document,CompositionNote.CopyCodeThe Co
. The result of the run method can end normally, but the original code had to get the console output information of CMD, while the runIt is not convenient to obtain the console information. At last, you can only redirect the console information to the file, and then the program is reading the information.
For more information about the parameters, see msdn.
Http://msdn.microsoft.com/zh-cn/library/ateytk4a (En-US, vs.85). aspx
Exec method (Windows Script Host)
Exec method (Windows Sc
JavaScript daily required array and object part, javascript Array
Object Section
Object Type
An Object is an unordered set that stores any type of objects. All other objects inherit from this Object.
There are two types of
Javascript is required: face object programming
Core concepts of face object programming technology:Encapsulation, inheritance, and PolymorphismIn some mainstream advanced programming languages, such as: C #, VB. NET, JAVA, PHP, and so on are easy to implement. If you want to implement face-to-face object programming
Python3 Socket TypeError: a bytes-like object is required, not 'str' error prompt, python3typeerror
At present, I am studying basic python syntax and computer network courses. So I just learned python network programming in combination. I checked the third edition of "python core programming" and found that the sample code 2-1 returned an error ..... Long tangleIt is found that python3.5 and Python2.7 diffe
SOURCE program:Import"www.baidu.com"# 127.0.0.1target_port =# Build a Socket object # Create a TCP connection # Connection Client client.connect (Target_host, Target_port))Client.send ("get/http/1.1\r\nhost:baidu.com\r\n\r\n")Error background: The program wants to create a TCP connection, error when sending data, indicating that the send function needs to pass a byte type value.Type error:typeerror:a Bytes-like
Documents -- document set object
A basic concept in set mathematics is generally a bunch of things, which means a bunch of PDF documents. This object can be used to calculate the number of PDF files opened in the current reader, and the currently activated PDF files.
Attribute:
Activedocument: the active PDF document in the current document set, that is, the PDF document displayed on the pdf page.
Count:
Documents -- document set object
A basic concept in set mathematics is generally a bunch of things, which means a bunch of PDF documents. This object can be used to calculate the number of PDF files opened in the current reader, and the currently activated PDF files.
Attribute:
Activedocument: the active PDF document in the current document set, that is, the PDF document displayed on the pdf page.
Count:
See others code see void On_mywidget_slottest ();Was depressed, did not see his code has connect but can signal and groove can be connected together.Today's review of the book found the letter of the NB place.Qmetaobject::connectslotsbyname (Qobject * object) will recursively search for all child objects of the incoming Qt object object, and associate the signals
The error often occurs when opening a text file through the open () function, using the ' RB ' attribute, such as: Filehandle=open (filename, ' RB '), when the file is opened in binary mode, so if the STR () function is used in the later processing, The error will occur, and the error will no longer appear in the Python2.There are two ways to solve the problem:The first, using the ' R ' attribute in the open () function, which reads text, instead of ' RB ', is read in binary file, which solves t
Error when running Telnetlib: Typeerror:a Bytes-like object is required and not ' str ' due to differences in Python2 and Python3 versions.It works in Python2, and the most important new feature of Python3 is the clearer distinction between text and binary data. Text is encoded in Unicode and is of type STR, while binary data is bytes type.Python has two types of conversion functions encode (), decode ().
String object for getting started with javascript [required for beginners] 1. String object
String object is used to process text (String ).
Ii. Constructor
New String (value) // ConstructorFunction String (value) // Conversion function
Iii. Attributes
Length: the number of characters in the string.
Var str = new Stri
Why is Page Object required?
Page Object (PO) is a common mode in the automated Acceptance Test of the interface. I want to discuss the necessity of Po with @ slot's nickname. I will express my point of view in this article.
The main value of Po is the encapsulation of interface interaction details, which enables the test case to focus more on the business rathe
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.