![]() In a batch file use %%G (on the command line %G)įOR /F processing of a command consists of reading the output from the command one line at a time and then breaking the line up into individual items of data or 'tokens'. This can be a singleĬommand, or if you enclose it in ( brackets), several commands, one per line. Use back quotes for `command_to_process`Ĭommand_to_process : The output of the ' command_to_process' is passed into the FOR parameter.Ĭommand : The command to carry out, including any parameters. Use double quotes for long file names in " filenameset". ![]() ![]() Instead of double quotes use single quotes for 'Text string to process' Usebackq Use the alternate quoting style: Tokens= n The numbered items to read from each line. Default = 0.Įol= Character at the start of each line to indicate a comment Skip= n A number of lines to skip at the beginning. ![]() SyntaxįOR /F %% parameter IN (' command_to_process') DO commandĭelims= xxx The delimiter character(s) default: a Space, TAB, comma, Equals or Semicolon. Loop command: against the results of another command. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |