dos for(国外英文资料).docVIP

  • 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

文档评论(0)

1亿VIP精品文档

相关文档