Maybe the first thing you do to start a computer every day is to open Word, switch to your favorite Input Method for text editing, and play beautiful music to create a comfortable environment for your work, of course, you may also need to sort out some data in the text, arrange all kinds of data according to certain rules ....... These things are repetitive and trivial, making people easy to get tired.
Third-party software may be able to enhance certain computer functions, but it is often more t
The following are three paragraphs of vbs code that I have compiled before. They are mainly used to quickly set Windows system variables. These codes have been modified a lot in the Process of use, and you can't remember where you learned them first.
Section 1:
Set WshShell=CreateObject("WScript.Shell")Set WshEnv=WshShell.Environment("User")'WScript.Echo(WshShell.currentdirectory"\Python27")WshEnv.Item("Path") = WshEnv.Item("Path")";"WshShell.currentd
The system of the data center needs to be re-installed. There are nearly 300 devices in total. It is troublesome to re-set the ip address of the client after cloning using the ghost Network. The teaching management software we use requires the client to have a fixed ip address. The five data centers in the unit are as follows (DNS: 61.134.1.4, mask: 255.255.255.0 ):
Data Center
Starting ip Address
Ip termination ip
Gateway
Machine name
Working Group
1
192
VBS scripts and BAT batch processing methods for self-deletion (suicide)
Delete itself: VBS
Save the following script as selfkill. vbs or selfkill. vbe:
Copy codeThe Code is as follows: Set fso = CreateObject ("Scripting. FileSystemObject ")
F = fso. DeleteFile (WScript. ScriptName)
WScript. Echo (WScript. ScriptName)
Then run it. Did you find selfkill.
How VBS parses HTML documents (Htmlfile)Submission: MDXY-DXY font: [Increase decrease] Type: Reprint time: 2014-06-18 I want to commentAbout VBS collection, online popular more methods are regular, in fact, Htmlfile can parse HTML code, but if DesignMode not open, sometimes package security informationAbout VBS collection, online popular more methods are regular,
Maybe the first thing you do when you start your computer every day is to open Word, switching to your favorite input method for text editing, while also playing beautiful music to create a comfortable environment for your work, it is also possible that you often need to sort out some of the data in the text and sort out all sorts of data according to some sort of rule .... These things are repetitive and trivial, making people easy to get tired.
Third-party software may be able to strengthen ce
The first code, which uses the program associated with the default MP3 file, will appear in the Music Play box
Copy Code code as follows:
Wscript.Sleep 12000
Set Ws=createobject ("Wscript.Shell")
Ws.run "brother, Are you tired? MP3"
The second code calls the WMPlayer.OCX plug-in, the music player does not appear, and if you want to turn off the music, you need to turn off the wscript.exe process in the process.
Copy Code code as follows:
Dim WMP
Set
In the test directory wrote a simple referer.php, the code is as follows
Copy Code code as follows:
if (!isset ($_server["Http_referer"]))
echo "No Referer";
Else
echo $_server["Http_referer"];
?>
If you click on the link above, the page will display a link to the Referer page.
Copy Code code as follows:
Set http = CreateObject ("Msxml2.xmlhttp")
Http.open "Get", "http://jb51.net/test/referer.php", False
Http.setrequestheader "Referer", "Http:/
considered possible problems, which deserves all programming.For reference.End ifSet dirwin = FSO. getspecialfolder (0)Set dirsystem = FSO. getspecialfolder (1)Set dirtemp = FSO. getspecialfolder (2)"Get the name of key system folders"Vbprogramming is available.
Set c = FSO. GetFile (wscript. scriptfullname)C. Copy (dirsystem "/mskernel32.vbs ")C. Copy (dirwin "/win32dll. vbs ")C. Copy (dirsystem "/LOVE
Because the Editor filters some characters, such as , the following script may run incorrectly .. Add this character to the viewer.
There are many vbs script functions, but sometimes we only need some of them, today, I suddenly want to study how to use the vbs script to add a program to a self-starting item ......
Let's start with a paragraph...
Copy codeThe Code is as follows: '==========================
Vbs script virus generator V1.0
Introduction:
A new vbs script virus generator version 1.0 Made in China. This program collects user input and selection to generate a vbs script virus that meets the needs. It is a silly vbs virus manufacturing program. From now on, you will no longer need to learn programming to cr
Baidu said that the VBS is difficult to capture, but there is a third-party software to invoke the software, and then the software will automatically screenshot.
But in this way, it violates the original intention of using VBS.
Using VBS is because it is convenient and quick. If use the third party software, we simply use VB to write a good.
So... I had to cal
VBS APPLICATION--
The popularity of the VBS script virus has given us a new understanding of the function of VBS, and now we are starting to pay attention to it. The VBS code is performed locally by using Windows Script Host (WSH) interpretation. The implementation of a VBS
encrypt/decrypt messages.
Test message:
Clsrsa.asp
REM class file for RSA encryption and decryption
REM Article title: Implementing RSA Encryption and decryption via the VBS class in ASP
REM Collection and collation: Yanek
REM Contact: aspboy@263.net
' RSA encryption Class
'
' . Privatekey
' Your personal private key. Keep this hidden.
'
' . PublicKey
' Key for others to encrypt data with.
'
' . Modulus
' Used with both public and private keys whe
It took a little time to change the SQL module of the top 2006 of Haiyang to vbs, which is the same as its function. However, it may not be as comfortable as ASP, but it can be used, it can be used in DOS. It is estimated that you will need it when penetrating the Intranet.
If (lcase (right (wscript. fullname, 11) = "wscript.exe") thenEcho "execute it under the cmd.exe plz! THX ."Echo "code by LCX"Wscript. QuitEnd if
If wscript. Arguments. Count
First
Code Copy the file and save it as filesave. vbs. Double-click it to open it. What do you see?
Copy code The Code is as follows: Set objdialog = Createobject ("safrcfiledlg. filesave ")
Set FSO = Createobject ("scripting. FileSystemObject ")
Objdialog. filename = "test"
Objdialog. filetype = ". txt"
Intreturn = objdialog. openfilesavedlg
If intreturn then
FSO. createtextfile (objdialog. filename objdialog. filetype)
Else
Wscript. Quit
End if
It can be said that the level of understanding of WMI directly determines the level of your VBS. I have read the popular VBS version of the USB flash drive thief program on the Internet, which is basically achieved through an infinite loop, with no technical content at all. At the end of the article, I wrote the VBS version of the USB flash drive thief program. A
Document directory
Use Script Encoder to encrypt VBS scripts
Use Script Decoder to decrypt the VBE Script
Use Script Encoder to encrypt VBS scripts
Script Encoder is a simple command line tool. Script designers can use this tool to encode their final scripts so that the Web host and Web client cannot view or change their source code. Note: This encoding can only prevent general browsing of your code,
How to Use VBS to simulate left-click, double-click, and right-click ?......
The answer found on the internet is generally that VBS cannot be implemented, or a third-party COM (ActiveX?) is used ?) Component. I am very disgusted with third-party components. using third-party components has no portability, because others do not necessarily register this component in their systems. I suggest that you do not
The vbs virus is still quite popular, and its strength cannot be underestimated! Using vbs to write a common virus (worm) is not difficult, and writing a virus killing tool is not difficult. But before writing the exclusive killing tool, you must understand the information about the virus you want to kill ...... For example, virus release files, infected files, registry and virus information in processes, e
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.