Batch Processing instance code tutorial
--------------------------------------------------------------------------------
Batch Processing Program deletes itself. bat
Echo sometimes we need to delete the batch processing program after the execution is complete. You can use del % 0
Example:
Copy codeThe Code is as follow
Batch Instance Code tutorial
--------------------------------------------------------------------------------
The batch program deletes itself. bat
Echo Sometimes we need a batch program to delete itself after the execution is done, and you can use Del%0
Cases:
Copy Code code as follows:
@echo off
ech
Interactive command under FTPIn general, we use FTP to a machine to upload files, download the operation,In the command mode, it is basically:1.FTP Host Name2. Enter the user name3. Enter your password4. Toggle mode (ASC or bin)5. Upload or download (Put or get)6. Exit (bye or quit)If you use some FTP tools, it's easier to operate.FTP Batch processing scriptIf we want to automatically do some FTP action on a regular basis, we can write a
First, the batch file is a text file, and each line of the file is a DOS command (most of the time like the command line we execute at the DOS prompt), you can use the DOS edit or Windows Notepad (Notepad) Any text file Editing to
. When the displayed note prompts you to put another disk into drive a, the pause command will suspend the program so that you can change the disk and press any key to continue processing.
6. Call Command
Call another batch processing program from one batch processing program without terminating the parent batch processing program. The Call Command accepts the la
Do you know the default sharing? It's not a good thing to have a place that doesn't need it. So I'm going to delete it. But this thing is recreated every time the system restarts. So every time I have to reopen cmd and delete it again. Extremely troublesome. But with a batch file is not the same, first the command entered in the batch
two files will make an error, and dragging them to the CMD command will perform normally. This is because the filename of the batch file cannot be the same as the command word, the above IMP and exp are the names of the commands, so they cannot be used to make the file name of the bat file.3. Using
How to Create a batch file?
Don't listen to the batch processing file. It's actually very simple. Have you ever used notepad? Used? Okay. open notepad without writing anything, select a file, and save it. select all files for the SAVE type, and name the
What are the commands in the batch file?
For the time being, the commands in the batch file can be understood as the DOS command, and will be explained later. batch Processing, as its name implies, is a pile of things heap together for processing. in other words, you c
encoding format of the save as option (UTF-8 without bom header). OK.
How about removing the bom header?
Let's talk about the BOM information of utf8.
BOM refers to the PHP file storage method for the UTF-8 with BOM, the common page of Chinese garbled mode is generally not caused by this reason.
header("Content-type: text/html; charset=utf-8");
This statement controls the encoding of html output pages,
BOM is only available in
Author: Zhu Jincan
Source: http://blog.csdn.net/clever101
Windows batch processing commands are not as powerful as UNIX shell scripts, but they can still play a great role in our work. A friend asked me why I learned the batch processing command 《ProgramA sentence in the book from the employee to the expert: the advantage of the graphic interface is what y
command (most of the time it is like the command line we run at the DOS prompt ), you can use any text file editing tool such as edit in DOS or notepad in Windows to create and modify batch files.
===== Willsort question note ============================Non-DOS commands can be used in batch files, or even common dat
the local hard drive to another location, the bulk scheduled download operation is in fact a batch copy of the hard disk files.
Use "send" to convert images in batches
How do you do this if you need to convert several BMP images at hand to JPG images? Perhaps you will open the image files and re-save them, although this method can solve the problem, but the operation of a lot of work, not conducive to efficient conversion of images. With the help o
Processing and variable. The fourth part is the complete case. Because the tutorial is relatively long, we will be divided into two series in the magazine.Welcome to the first and second sections.Part 1: dedicated commands for Batch ProcessingA batch file is a collection of commands in a certain order into an executab
restore data. The principle is to import the previously backed up DMP database file to the database. The content of imp. bat is as follows:
Sqlplus xuwei/xuwei @ orcl @ F: \ mydata_mytest \ droptables. SQLIMP xuwei/xuwei @ orcl file = F: \ mydata_mytest \ oradata. dmp full = y ignore = y
2.4. Notes on BAT file naming
The two
Nowadays, many malignant Viruses need to be scanned and killed using the exclusive killing tool, but some viruses will automatically prohibit the running of the exclusive killing tool. We often use other systems (such as Dos or PE) to scan and kill these stubborn viruses. In fact, the kill tool is a batch file that can delete virus files, which is not difficult to understand and compile. This article provid
. Then, the program displays Good bye, and the file ends.For Loop Command, as long as the conditions match, it will execute the same command multiple times.Format: For [% F] In (SET) do [command]If the parameter F is in the specified set, the condition is true and the command is executed.If one batch file contains one row:For % C in (*. bat *. txt) do type % CIt
the execution label as mem, E indicates the program segment whose execution label is end. Each program segment finally jumps the program to the end label using goto end. Then, the program displays Good bye, and the file ends.
ForLoop Command, as long as the condition is met, it will execute the same command multiple times.
Format: For [% F] In (SET) do [command]
If the parameter F is in the specified set, the condition is true and the command is exe
The tool to use:1. CCNET (used to detect when SVN has changed commit automatically build and run NuGet automatic packaging and push batch processing)2, Proget (currently see the best use of NuGet internal package management platform)3. Windows batch (batch processing for Windows
I haven't written a blog for a long time. I haven't read much about it in this period of time, but I always feel that I have not finished a job. So I will write down my summary.Section 1 describes windows batch processing.This is because I learned how to work in windows with my colleagues. I gradually needed some batch
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.