In a batch file, use two percent examples. The change in the example above is as follows:
FOR %i IN (a b c d) DO one %i
FOR %%i IN (a b c d) DO one %%i
This example executes ONE.BAT for each item in the list.
FOR %i IN (a b c d) DO CALL one %i
In releases of MS-DOS earlier than version 3.30, this can be done by spawning COMMAND.COM with the /C switch and letting it execute the batch file. The above interactive example is changed to the following:
FOR %i IN (a b c d) DO COMMAND /C ONE %i
Raksta ID: 43075. Pēdējo reizi pārskatīts: 2003. gada 30. sept.. Pārskatījums: 1