Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MS-DOS Line - syntax #1: for %c in (set) do command http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    Syntax #1:  FOR %c IN (set) DO command
                (regular command)

    Syntax #2:  FOR %%c IN (set) DO command
                (batch file command)

    (Internal) Executes the specified command once for each item
    in the set.

        set     is either a list of items seperated by spaces or one
                wildcard item.

        c       can be any one-character variable except 0 to 9.

        command is the command to be executed.  If you include %c or %%c
                at the end of the command, MS-DOS sequentially substitutes
                each member of set in the command.

    Example:
            for %f in (textfile autofile homefile) do del %f

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson