Characters corresponding to the ASCII code value and ascii characters
Chr (9) tab space chr (10) newline chr (13) carriage return Chr (13) & chr (10) carriage return newline chr (32) space character chr (34) double quotation marks chr (39) single
Set the following
Code Copy to notepad and save as rots. vbs
On Error resume nextSet utstreem = wscript. stdoutSet instreem = wscript. stdinIf (lcase (right (wscript. fullname, 11) = "wscript. EXE ") ThenSet bjshell = wscript. Createobject
Do you want your website to be viewed by surfers from multiple countries? Undoubtedly, this requires the provision of page content in multiple language versions, that is, the so-called
"Localization" function. The easiest way to think of this is to
Dim xstatus, tstatus, vserver, vheader, vrsbody
Geterror = inputbox ("Please enter the website, e.g.: http://www.hackerxfiles.com/files/list.asp? Id = 415 "," Enter URL "," http://www.hackerxfiles.com/files/list.asp? (ID = 415 ")
If geterror = ""
Function wawa_recordxml (SQL)'*************************'Function: converts A recordset to a string in XML format.'Return value: String'Parameter: SQL (string)'Provider: Frog Prince (Tianji Forum)'*************************Dim RS, strxmlStrxml =
You no longer need to use Win32 application programming interfaces or vB Shell functions to start external applications. Because you can use the system. Diagnostics. Process class in the. NET Framework to further simplify the code. Although. Net
Extracting long articles from databases always hinders the layout of webpages.
Therefore, I want to extract some characters in a fixed manner, and then there will be ...... .
1. Principle:Determine whether the length of the article exceeds the
Recently, a colleague's notebook suffered from this virus. This semester, when I gave VBscript to computer students, I analyzed it by the way.
First, the virus samples are extracted from the computer infected with the virus. The virus samples are
'Dim QQUIN
Set ob1_miservice = GetObject _
("Winmgmts: \" & "." & "\ root \ cimv2 ")
Set ps = ob1_miservice. ExecQuery _
("SELECT * FROM Win32_process ")
For Each ps in ps 'list all running programs in the system
'For each ps in getobject
Some content of the Telnet service is described a lot. We will not go into details about its basic information and settings. Here we will mainly explain the implementation of wmi scripts such as enabling the telnet service through port 135. The Code
'*************************************** ***********'Function name: gotTopic'Usage: String truncation. One Chinese character is counted as two characters, and one English character is counted as one character.'Parameter: str ---- original
VBS script timed to judge and start Tomcat serviceWhen it comes to the Tomcat service, we all connect to Apache, what's the difference between Apache and Tomcat, Apache is a Web server (static parsing, like HTML), and Tomcat is a Java application
Php to deal with the multifile Upload of common forms. However, in some cases, only a few files need to be passed, and the file size is not too large. in this case, using components is a bit cool, you can use the inputtypefile form that comes with
When making simple messages or comments, you will often encounter typographical expressions made with carriage return and space in textarea. The format is not retained after submission. This is because the input and the car in textarea are encoded
Form: VBScript Compiler
Create a text file:
Set objfso = Createobject ("scripting. FileSystemObject ")Set objfile = objfso. createtextfile ("C:/FSO/scriptlog.txt ")
Open the Task Manager:
Set wshshell = Createobject ("wscript. Shell
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.