Http://blog.csdn.net/yan11cn/article/details/5004279
Refer to the blog of Tom
Regexp objects are the objects used in VBScript to provide simple regular expressions. All attributes and methods related to regular expressions in VBScript are associated with this object.
Dim re
Set Re = new Regexp
This object has three attributes and three methods, as shown in table 9-1.
Table 9-1
Genus
Global attr
In VBScript, processes are divided into two categories: Sub processes and Function processes.
Sub procedure
A Sub procedure is a set of VBScript statements that are contained between a sub and an End Sub statement, performing an action but not returning a value. Sub procedures can use parameters (constants, variables, or expressions passed by the calling procedure). If the Sub procedure has no arguments, th
vbscript| scripts Call VBScript, JavaScript, and so on in C # implementations
Author: Autumn Maple
Previously in the work Flow (workflow) project, one of them is that when a user makes a process definition, it is possible to write a script to control the jump of the activity, and after these scripts are defined, the workflow engine controls the sequence of activity execution when the process is started, a
vbscript|window| Registration Form
Have you heard of the famous WSH? It is the abbreviated form of Windows Script Host, a scripting instruction for Windows platform that is powerful enough to achieve its superior functionality with a simple, easy-to-use and powerful JScript and VBScript scripting language, WSH. In addition to the modified registry described in this article, it can also access the Excel file
Content on this pageIntroductionCompile ActiveX ControlsAccess ActiveX control using JavaScriptAccess ActiveX Control Using VBScriptDescription
Introduction Now we use VB to create an axtivex control and then call it on the web. This may be because of the old technology. There is very little information, and ActiveX functions are still very powerful. I would like to sum up some experiences. It is about accessing properties, methods, and events of ActiveX controls using JavaScript and
First, add the webbrowser object to the HTML page:
Then, use the following
Code Print:
The key code wb.exe CWB 6, 2, 3 can be printed directly in VBScript mode without prompting, But it is strange that the same parameter is used. In JavaScript mode, ie will still pop up the Print dialog window, maybe it is because VBScript is developed by Microsoft for IE, while Javascript is an outsider after all :)
Find
CopyCode The Code is as follows: '/* =================================================== ==========================================
'* Intro VBScript uses ADSI to batch add IP addresses that are blocked or allowed to access IIS
'* Filename VBScript-ADSI-IIS-Add-Deny-Grant-IP-Change-MetaBase.xml.vbs
'* ===================================================== ============================================= */
'Add
A simple example of a VBScript page
Use Microsoft (R) Internet Explorer to view the following HTML codeCreated page. If you click the button on the page, you can see the running result of VBScript.
A simple HomepageA simple HomepageClick here">
The result is a bit simple: a dialog box displays a Latin phrase (meaning "looks pretty "). However, this Code actually does many things.
When Internet Explorer read
Test ASP, today encountered a problem, about the coding problem! Not only is garbled, but also hints at the end of the string constant, looked at half a day, unclear so 1Response. charset="Utf-8"2 ifResponse.isclientconnected=true Then3Response.Write ("The user is connected. ")4 Else5Response.Write ("The user is not connected. ")6Endif The last check is that the server thinks. "Even together, that is, the lack of one," but this is not possible ah, to ask others, a
Today, the client needs to use Vbscript to process and submit the form. However, there is always an error when submitting the form. The error message is: "The object does not support this attribute or method ". After checking the information, we will know:
Reference contentIn addition to the form submission button, a form item cannot be named submit.Change the name. No problem, Khan.
I have never encountered this problem with JavaScript before. Wh
When you are running some files based on vbs script language, the system may report an error. At this time, it may be that your vbs script Service has an error in the registry, because it may be due to uninstalling or installing some
CodeNonstandard
Program. Here is a solution to the failure to find the script engine "VBScript:
1) Find the file C:/Windows/INF/wsh. inf and right-click "Install ";2) Start → run the line Input: regsvr32 urlmon. dll
path in the first line of quotation marks to your own temporary eMule file directory, and change the suffix to vbs.
This script detects the temp folder every two minutes. If the Emule download is complete, the temp is empty, and the script executes the shutdown command 60 seconds after the shutdown.
When I executed the above script yesterday, I encountered the problem of "cannot find the Script Engine VBScript". It is suspected that the vbs script
Yesterday when a customer told me that I didn't see the picture when I logged in, I didn't believe it, because my browser test found everything to be OK.Through the QQ Remote Assistance, I only found the server side really error:Microsoft VBScript Run-time error (0X800A000D)Type mismatch: ' [string: ' '] 'Check the code and find the error line:If Request.Cookies ("name") = 1 ThenStrange, why does my browser run without error, after analysis, originall
. Therefore, I need to write VBScript code to solve the file upload problem. This is not an inevitable choice, because VBScript is a scripting language that can only use the variants data type, and does not provide many built-in functions to manage binary data and byte arrays. To understand the upload process, you must first know how data is sent to the server from the browser over HTTP. This means to under
EditPlus is my most common asp/html/css development tool.
However, it only supports the automatic completion and function List of A/C + + system language, with no built-in ASP (VBSCRIPT) functionality. To facilitate my work, I simply implemented these two features by imitating the original configuration file.
Create a new ASP.ACP file first.
--------------------------------------
#TITLE =ASP/VB
; EditPlus auto-completion File v1.0 written by SNOWALK.H
The original: The function of VBScript is migrated to C#.net
VBScript 5.6 Functions
C # code
Abs
System.Math.Abs
Array
New Object () {}
ASC, AscB, AscW
Microsoft.VisualBasic.Strings.Asc
Atn
System.Math.Atan
CBool
System.Convert.ToBoolean
CByte
System.Convert.ToByte
Divisible
Integer division in ASP (VBScript) is "\", such as M = 5 \ 2, and the result is 2.
Take more
Use mod in ASP (VBScript), such as M = 5 mod 2, and the result is 1.
Large number of attention
m = 4444444444/2n = 4444444444 \ 2
The first sentence is correct, and the second sentence runs with an overflow error because: The numeric expression is rounded to a Byte, an Integer, or a Long subtype befo
Js/vbs/vbscript Encryption Code:
Description:You can complete the operation by,If there is a run error,
The second step we do a test with JS encryption above the code, the encryption effect is as follows:
In fact, we can according to the above encryption source, to decrypt the source code as follows:
Our decryption is done!
Js/vbs/vbscript Universal decoding!
Working with conditional statements
Program execution
Use conditional statements and circular statements to control the flow of scripts. Use conditional statements to write VBScript code for judging and repeating operations. The following conditional statements can be used in VBScript:
If ... Then ... Else statement
Select Case Statement
Use If ... Then ... Else to judge
If ... Then ... The Els
A simple example of a VBScript page
A simple page
Use Microsoft Internet Explorer to view pages made with the following HTML code. If you click a button on the page, you can see the results of VBScript running.
A simple home page A simple first click here">
The result is a bit simple: a dialog box displays a Latin phrase (meaning "looks very beautiful"). However, this code actually does a lot of thin
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.