actionThenCommand sequence ....FiExit status of the script: depends on the last command before exiting $? Value, or "Exit integer value" specified.List-for-loop structure:For variable name in value 1 value 2 value 3: ..DoCommand sequence ($ variable name)DoneUse command substitution to get command results: $ (Command line)Steps:Step one: Write batchusers bulk Add user script1) Writing script code[Email pro
RunDll32.exe detailed explanation and batch processing; Windows batch processing; clear iesaved; RunDll32.exe Batch ProcessingRundll32 command details
File Function: Execute the internal functions in the 32-bit DLL file
Location:X: (current system partition) \ windows \ syst
. Here we will introduce a slight change to the method and idea to check other Trojan scripts. Then we will change it and add the parameter and port and information list files, the script automatically detects all Trojans. Haha, isn't it fun? The combined commands and pipeline commands are also used in the script, which will be detailed later.
Example 4: Use batch
MYSQL registration Start and Stop unmount batch processing script (Supplement), mysql Batch Processing
The batch file that was written earlier when the mysql interface was debugged.
Register and start my_install.bat
@echo offset MYSQL_DIR=%~dp0rem set MYSQL_DIR=%cd%if not "%MYSQL_HOME%"=="" ( if not "%MYSQL_HOME%"==
MySQL batch insert data script, mysql insert script
MySQL batch insert data script
#! /Bin/bashi = 1; MAX_INSERT_ROW_COUNT = $1; while [$ I-le $ MAX_INSERT_ROW_COUNT] do mysql-uroot-proot dbname-e "insert into tablename (name, age, createTime) values ('Hello $ I ', $ I % 9
Batch configure SSH mutual trust script and ssh mutual trust script
During large-scale automated deployment, we often need to configure SSH mutual trust on the server so that the automated script can log on to the remote server without password. The general steps to manually configure SSH mutual trust are as follows:
1. Batch processing with the parameter ping command@echo offecho Input you IP address ...set/p ip=echo Your IP number is%ip%.Ping%ip%Set ip=Pause2. Send Alarm ScriptFor counter = 1 to 3 Step 1SendMailNext Public Sub SendMail NameSpace = "http://schemas.microsoft.com/cdo/configuration/" Set Email = CreateObject (" Cdos. Message ") Email.from =" Server "' sender name email.to =" [emailprotected] "' Recipient e-mail address Email.subject = GetIP "T
The scope of the script in this article applies:1) Detect whether some IP address is occupied;2) detect the existence of some devices in the network;3) batch detect if there are conflicting machines in the environment before assigning a new IP addressThe above detection is based on the ICMP ping message, all devices are required to allow Ping, the device is disabled ICMP policy, firewall prohibit ICMP packe
Goto Begin In this example, all the files on the disk in drive A are copied to D:\back. The comment that appears prompts you to put another disk in drive A, and the pause command suspends the program so that you can replace the disk and press any key to continue processing. Call command Another batch program is called from one batch program, and the parent batch
Windows batch files do not have a Linux-like sleep function for latency processing, there are 2 more practical ways to implement latency:
1, the use of wscirpt sleep function, precision 0.001 seconds
Create a VBS delay file, and then invoke it in a batch file, using the WScript sleep function, to achieve the effect of sleep.
Actual combat:
1 Create file Sleep
Windows batch processing-file name modification tutorial, batch processing file namePurpose
You can batch modify a regular file name for any file name, as shown below:
Rename by keith.gifUsage
Create a new file (.txt), copy the following code, save it, and change the file suffix to. bat. Put it in the folder where
Windows Command Line (batch processing) file delay (sleep) method, batch processing sleep
In Windows, the next batch processing file does not have the same Sleep function as in Linux for latency processing. Here there are two more practical methods to achieve latency:
1. U
How to back up Oracle batch processing on Windows (with scheduled tasks or third-party timing software, you can achieve automatic backup), oracle Batch Processing@ Echo start to back up oracle Data@ Echo offSetSet curdir = "D: \ backup"Echo % curdir %Set t1 = % Time :~ 0, 1%If "% t1 %" = "" set t1 = 0Set td = % Date :~ 0, 4% % Date :~ 5, 2% % Date :~ 8, 2% % t1 :
Shell) is a powerful network configuration command-line tool provided by the Windows system itself. Export configuration script: Netsh-c interface IP dump > C:\interface.txt import configuration script: Netsh-f c:\interface.txt.Dump: Display a configuration scriptAdd: Adds a configuration item to the list of items.
netsh-c int IP dump > c:\ip.txtThis command dis
Windows batch processing: automatically deploy common software (Silent Installation) and batch processing common software
I. Introduction
I have been testing to use domain group policies to automatically deploy software for a short time. First, the host must be added to the domain for the policy to take effect. In fact, Windo
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.