Batch +vbs+ registry Implementation Windows boot automatically start EXE programThe following are all Windows-based systems.We all know that when we think of a program running automatically at boot time, there are only three ways:1, make the service, and then configure the service to start automatically ( can be achieved without user login to complete );2, to make the driver, with the system start ( can be achieved without user login to complete );3,
Note: The author
Code Modified. This file is a complete
Program . After the file is executed, all files that meet the conditions on the hard disk will be searched and overwritten forcibly (all files that meet the conditions will be lost) and create another file with the same file name. vbs file. Therefore, be sure to set up damage test conditions and never test others. Otherwise, all consequences will be borne by yourself. If your system does not su
VBS can also be written as follows:
1. The VBS class has two types of events:
(1) Initialize event, which occurs (new) when a class instance is created.
Private Sub Class_Initialize ()StatementsEnd Sub
When class initialization,StatementsIt consists of zero or more code statements to be run.
(2) Terminate event: This event occurs when the instance of the associated class is terminated (destroyed.
Private Su
Recently related backup more frequently, in order to verify the integrity of the file, always open a file hash check tool, more trouble, so wrote this dongdong, the file is a little slow to calculate, the file MD5 value saved on the Clipboard
Recent related backup more frequently, in order to verify the integrity of the file, always open a file hash check tool, more trouble, and wrote this dongdong, the file is a little slow to calculate, the file's MD5 value saved in the Clipboard! Effect as s
Description of the setlocale function in the VBS document:
Sets the global locale and returns the previous locale.
A locale is a collection of user reference information, which is related to the user's language, country/region and cultural tradition. The locale determines the keyboard layout, alphabetical sort order, and date, time, number, and currency format.
Simply put, the return value of some functions in the
Copy Code code as follows:
'*****************************************************************************
' FileName:Reg2Vbs.VBS
' Author:baomaboy
' Abstract: Convert a reg file to a VBS file save
'*****************************************************************************
Dim Wshshell,fso
On Error Resume Next
Set WshShell = WScript.CreateObject ("Wscript.Shell")
Set FSO = CreateObject ("Scripting.FileSystemObject")
Set Args = wscript.
'**************************************************************************************************************
' Here's a loop compare log update date
Do while (1)
If (Fsog.fileexists (indexpath)) Then
' Indicates the latest update time
Set Findex=fsog.getfile (Indexpath)
Crtdate=findex.datelastmodified
If Flmdate Strreadfolders=readlinetextfile (Indexpath)
Strlocalfolders=showfolderlist (Strlocalpath)
Dowithchange
Flmdate = Crtdate
End If
End If
"' **********update
VBS is a very simple scripting language, and because of simplicity, it supports only a small subset of the features that are object oriented.
Other object-oriented programming languages typically use this or the Self keyword to access the current object, and the VBS uses the Me keyword. The Me keyword represents the current instance (instance) of the class at the time the code is run, or the current objec
Yesterday that virus encryption is indeed very scary, I am not a master, can't write so advanced encryption. But with the first layer of encryption inspired by the virus, simple encryption is not difficult. Of course, this low-level encryption can only be used to cheat some of the garbage anti-virus software. Using the Msxml2.xmlhttp and ADODB.stream object of the VBS script is very easy to antivirus software is considered a virus, unknown to the trut
Recently a colleague of the laptop suffered from the virus, just this semester in the computer professional students on VBScript and then by the way analysis.
First from the virus-infected computer to extract the virus samples, because it is temporarily found, and there is no special preparation, the use of WinRAR compressed after saving.
On the experimental machine to open the virus samples of the compressed file, my Symantec 11 immediately to the police, and the virus removed. So you have to d
The principle of this function, is to use the VBS to generate EXE file, and then run, but this exe is relatively small, not two files, a VBS to achieve the VBS bubble effect
Copy Code code as follows:
data= " 4d5a00000000000000000000504500004c010200534c58210000000000000000e0000f010b01000000000000000600000000000054010000001000000 C00000000004000001000
(HW)
So when you want to modify the output, just change the value of the HW.
OK, now let's take a look at the first important "cornerstone" of programming: Variables.The best way to explain a variable I think is "box", a variable like a box, which can only contain a thing, when you want to load something else must take out the original things.This "box" has a name, and when you use variables in a program, the system opens the box to take out the contents and let these things work, not the box
These days can not visit the hard disk to review the Dongdong, find out this thing out, because the level is limited, and there is no research on DHTML, so do is very rough, posted up is to stimulate, I hope that there is an expert can help modify or come up with more excellent dongdong out.
The test environment for the Windows XP Professional Edition SP2, temporarily found that code coloring has bugs, although there are solutions, but due to the amount of code (in Notepad to write code is reall
Encryption | decryption | Essence in ASP through the VBS class to achieve RSA encryption and decryption, recommended into the essence
This article consists of two documents
Test.asp Test Demo file
Clsrsa.asp to implement RSA encryption and decryption of the VBS class file
Here's the code:
1. test.asp
REM Article title: Implementing RSA Encryption and decryption via the
js| Ads | script | Show |js| ads | Scripts use AD modules when writing a project, in order not to use ASP to generate scripting code is more cumbersome, so the idea of writing a script class, that is, a class of scripting code to control all the display on the same page of the floating ads. But in the process of writing found that the JS script in the settimeout can not use the method of class. Strange, whether I was mistaken or JS script can not do this?? But the
Program | essence | Template Article title: VBS class processing template implementation code and interface separation
' Author: Yanek
' Email:aspboy@263.net
This program through the VBS class processing template to achieve code and interface separation of the program, mainly the following file composition
Index.asp,parse_cls.asp,template.html
Here is the code
1. Index.asp call the
Go from: VBS code How to use WScript debugging
Some friends use VBS to write code used to MsgBox output, sometimes a piece of code debugging finished output a bunch of MsgBox, adjusted to delete. It is more tiring to encounter a situation where you want to see the object ...
However, how a programming language may not have a better debugging method, MsgBox write tired when trying to use WScript.
WScript is
Overview
System boot, incidentally automatically started a lot of drivers, making the computer boot after the mouse to sluggish for a long time. In order to speed up the speed of Windows, in reference to a lot of Daniel's information on the Internet, sorted out the use of VBS script to achieve after the start of the delay program method
VBS Content Example:
Copy Code code as follows:
Dim De
The first method: Executefile, using this function to dynamically load the external VBS, so that the test script can call the VBS file of all functions, the call statement is written below, the order cannot be reversed, otherwise it will be an error. This method is suitable for any version of QTP, but there is a drawback that code debugging can not be traced to the function of the external
The development and testing environments are in different CIDR blocks and IP address changes are often required. Manual modification is very troublesome. Later, a small vbs script was found to achieve automatic failover.
Suppose the IP segments are 192.168.30. * And 192.168.41. * respectively .*
Add two new files, turn30.vbs and turn41.vbs, respectively. The
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.