commissioned by a friend, write a VBS code to implement the power off the network to forcibly shut down the function of the computer, he said for the students in the classroom use, class always have students want to leave the teacher's surveillance, for this, will unplug the network cable or disable network card, so, get a VBS The script detects the status of the NIC and forcibly shuts down immediately if t
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 server (dynamic parsing, such as JSP, PHP) Tomcat is just a servlet (JSP also translated into a servlet) container that can be considered an Apache extension, but can be run independently of Apache, which can
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
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
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.
("%PATH%") ' creates the file, where f can be arbitrary, contains the thumbnail name
F.writeline ("VBS") ' writes the file content, the command function is too simple, at present appears only for TXT file
F.close
Set C=fso.getfile ("%path%") ' Copy a file
C.copy ("%path2%") ' Copy file to designated location
Fso.deletefile ("%PATH%") ' Delete file
Wscript.Quit
Program code
Set FSO = WScript.CreateObject ("Scripting.FileSystemObject")
Set F=fso. Cr
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
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
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
JS string to date format Date Format String, js Date Format
1/** 2 * @ author Chen weibin 3 * if you want to format the date string, you need to first convert it to the Date type Date 4 * below are several common 5*6 * var da = new Date (). format ('yyyy-MM-dd hh: mm: ss');
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 script should have the following features:
1. Automatic Start;
2. Copy all files and folders of the USB flash drive to the specified location on a regular basis;
3. No error message (critical, if you don't want to find it ).
The idea is very simple. Next we will talk about the specific content of the script. I have added comments after each line of script. I hope this will be easier for me to understand.
Copy codeThe Code is as follows: On Error Resume Next 'ignore the exception; otherwise,
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.