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.