![]() ![]() Note that you cannot replace COMMAND /C with CALL However, by using a second command processor you may still be able to nest them:įOR %A IN (1 2 3) DO COMMAND /C FOR %B IN (A B C) DO ECHO %A%B In DOS (COMMAND.COM), nesting FOR commands is not possible. ![]() Note, however, that variables are case sensitive, so be consistent: The A in %A may be replaced by any character, either upper case or lower case, except numbers. In all examples and syntax lines shown %A should be substituted with %%A when used in batch files. In this example, command will be executed once for every element in list, using parameters if specified.Ī special type of parameter (or even command) is %A, which will be substituted by each element from list consecutively.Īs specified under basic syntax, plus VFAT/FAT32 long file name handling with LFNFOR in MS-DOS 7.*Īs specified under basic syntax, though unlike in DOS, you may use redirection and conditional execution in the command string specified after DOĪs specified under basic syntax, plus many new options Is a list of any elements, separated by either spaces, comma's or semicolons.Ĭan be any internal or external command, batch file or even - in OS/2 and NT - a list of commandsĬontains the command line parameters for command. ![]() VoltCraft Energy Logger 3500 ConfigurationįOR loops Basic syntax: FOR %A IN ( list) DO command list. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |