1. Summary
(1). ". Bat": This is the suffix of Microsoft's first batch of processed files and can be run in almost all Windows operating systems.
(2). ". cmd": it is a command line script designed for Windows NT. It is designed for cmd.exe shell and does not have backward compatibility with command. com.
(3) what is currently known. CMD and. the difference in the BAT fi
Recently, you need to use Sourceinsight to view the project code developed under Linux, and we know that the default encoding format for text files in Linux systems is UTF-8, and the default encoding format for Windows Chinese is Gb2312. The coding format in the system is different, the key is sourceinsight unexpectedly do not support UTF-8, resulting in the project code in the Chinese comments all garbled!
Since Sourceinsight does not support UTF-8 encoded files, we have to find a way to conve
If you manage more sites and servers, every time you modify a configuration file, it's pretty painful. The idea is to use a shell script to generate bulk configuration files and configuration data. The following script is a shell script for batch generation of Nagios monitor
file to be deleted (for example: F:\Logfiles)/M *.log-d -7/c "cmd/c del/f @path"Explain the relevant parameters and commands@PATH: Represents the full path of the file.@File: Represents the file name.========== Case Action ============ 1. Delete all empty directories (to remove the D:\test directory as an example)dir/
Here are the steps and methods for Oracle batch script file execution1. Create script file (xx.sql):For example, file createtableCreate table tb1 (ID varchar2 (), Name varchar2 (50)); commit;/You can create multiple, but note that
to internal sharing. You can download and run the script during editing.
This script can automatically determine whether the script is run or manually modified. If it is modified, it will not automatically add new records. If it is not modified, a new row of records will be added at the bottom.
Note: If the IP address is pointed to by multiple domain names, a
REM file name set DNS name server address Bat batch script file. batREM Use set the DNS name server address for the wireless network connectionnetsh interface ip add DNS "Wireless network connection" 8.8.8.8netsh interface ip add DNS "Wireless network connection" 8.8.4.4netsh interface ip add DNS "Wireless network conn
Use batch files to upload and download files on the FTP server, batch ftp
1. From the file in the root directory of the ftp server to the specified folder
Format: ftp-s: [configuration
This article mainly introduces the writing shell script, uses the ICONV batch to change the file coding the script code, needs the friend to be possible to refer to under.
Usage examples:
CD ~/workspace/xxxproject
~/iconv_shell.sh./*java
Okay, go straight to the code ~ ~
#!/bin/bash
If ["$#"!= "2"]; then
A script that converts any file into a batch.The advantage of Base64 encoding is that the data size is compressed (compared with bin2str). The disadvantage is that it increases the processing time and script complexity.Because the efficiency bottleneck lies in the process of generating vbs in bat, it is still possible.Writing files using ADODB. Recordset is much
------Create this file Autoinstall.batThe contents are as follows:@ECHO off@REM Add Adb.exe to PathECHO initialization ...@SET path=%path%;%cd%\adb@REM SET PATH@REM an infinite loop of labels: LOOPECHO waits for you to insert your phone ...ADB wait-for-device@REM Loop Install apk file in this directoryFor%%i in (*.apk) do (ECHO is installing:%%iADB install%%i)@echo offECHO is installed; change a cell phone!
Reprint to http://my.oschina.net/u/660932/blog/117929One@echo offSetlocal enabledelayedexpansion:: Coder by Mark_li Powerd by IBAT 1.6CD "C:\Program files\mysql\mysql Server 5.5\bin":: Database name@set db=hrms:: User Name@set Username=root:: Password@set password=:: SQL Script to execute@set sqlpath= "C:\Program files\mysql\mysql Server 5.5\test_hrms.sql":: Connection to MySQL database and execute SQL script
by zzzevazzz@ph4nt0m.org
The advantage of encoding data with BASE64 is to compress the size (relative to bin2str), with the disadvantage of increasing processing time and scripting complexity.
Because the efficiency bottleneck is the step of creating a VBS in BAT, it is generally cost-effective.
Writing files with Adodb.recordset is much better than Debug.
Most of the things are scripted, and the batch process simply generates the
Update"#-N: Not affected by the. netrc file,Open IP PordUser Username passwordPassiveBinaryCD DIRLcd/local/dirPromptMput *CloseByeEofPut command explanationOpen to establish a specified FTP server connection, default port 21User connection PasswordPassive using passive modeBinary binary transfer mode (no modifications to the file will be done)CD Switch Remote
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.