- 5
- 0
- 约1.88万字
- 约 20页
- 2017-06-05 发布于河南
- 举报
dos for(国外英文资料)
dos for
The for command is a more complex command that is used to execute commands around the specified scope.
When using the FOR command in the batch file, specify the variable using % % variable
For {% variable │ % % variable} (set) in the do command [CommandLineOptions]
% variable specifies a single letter replaceable parameter.
(set) specifies a file or group of files. You can use wildcards.
Command specifies the command to execute for each file.
Command - parameters specify parameters or command-line switches for specific commands.
When using the FOR command in the batch file, specify the variable using % % variable
Instead of using % variable. The variable name is case sensitive, so % I is different from % I
If the command extension is enabled, the following additional FOR command formats will be supported:
FOR/D % variable IN (set) DO command [command - parameters]
If the focus contains a wildcard, you specify a match to the directory name instead of the file name.
FOR/R [[drive:] path]
Check the directory tree root of [drive:] path, which points to the FOR statement in each directory. If no directory is specified after/R, the current directory is used. If the set is only a single point (.) character, the directory tree is enumerated.
FOR/L % variable IN (start, step, end) DO command [command - parameters]
This set represents a sequence of Numbers from the beginning to the end in an incremental form.
Therefore, (1, 1, 5) will produce a sequence 1, 2, 3, 4, 5, (5, -1, 1) to produce the sequence (5, 4, 3, 2, 1).
FOR/F [ options ] DO command
FOR/F [ options ] % variable IN ( string ) DO command
FOR/F [ options ] % variable IN ( command ) DO command
Or, if you have the usebackq option:
FOR/F [ options ] DO command
FOR/F [ options ] % variable IN ( string ) DO command
FOR/F [ options ] % variable IN ( command ) DO command
Filenameset is one or more file names. Until the next file in filenameset, each file has been opened, read, and processed. Processing involves r
您可能关注的文档
最近下载
- 2024年潍坊护理职业学院高职单招(英语/数学/语文)笔试2018-2023历年真题摘选带答案解析.docx VIP
- 《智能管理系统创新与发展》课件.ppt VIP
- 仁爱版七年级下册英语单词默写表(中文版).pdf VIP
- 2025年潍坊护理职业学院单招笔试数学试题库含答案解析.docx VIP
- 2025郑州中考一模化学试卷.docx VIP
- 2025河北单招第七类综合素质真题 .pdf VIP
- 2025黑龙江林业职业技术学院单招《数学》经典例题含答案详解(能力提升).docx VIP
- 大病低保申请书.docx VIP
- 发热伴血小板减少综合征药物治疗指南(2025年版)解读PPT课件.pptx VIP
- 2020泰和安TG3100广播控制盘安装使用说明书.pdf VIP
原创力文档

文档评论(0)