Cmd common batch processing commands

Source: Internet
Author: User

Cmd commonly used batch processing command 1. The data in the txt is output cyclically for/f % l in(testfile.txt) do echo % l Note: When writing bat batch processing, the Number % must be one more: for example, % l 2. Upload the file for/f % l in (dgf_list.txt) Through cyclic svn) do svn commit % l-m "Adjust file directory Upload File" 3. copy a file copy a.swf B .swf(copy a.swf named B .swf) 4. Determine whether the player exists and whether the file does not exist if exist props1.swf echo else echo does not exist if not exist props1.swf echo does not exist else echo 5. for data loop: for/l % a in (, 99) do (del % str % \ jump00000000a.txt/q/f) 6. set the variable: set a1 = Zhang San (note that no quotation marks are required) call % a1 % 7, use semicolons to indicate 8, pause the execution of pause, serial port will not close 9, line feed Write statement can be expanded with parentheses, multiple statements in the same row can be connected and executed. 10. All file names in the specified folder are listed and saved in a txt file. dir XX/a> c: \ TEMP. txt xx is the path>/> to direct the output result to a text file> append. If the file exists, add it at the end of the file.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.