for Verified for current stable LTS

For Command: Iterate Directory List Windows

Use for iterate directory list windows with For. Exact CLI syntax to iterate directory list windows using For.

When to use this: Use for iterate directory list windows with For.

Command Syntax

for /d %<variable> in (<path\to\directory1.ext path\to\directory2.ext ...>) do (<echo Loop is executed>)

Live Command Builder

Final Command

for /d %<variable> in (<path\to\directory1.ext path\to\directory2.ext ...>) do (<echo Loop is executed>)

Command Breakdown

for is the base executable for this command.

FAQ

Purpose: Exact syntax to iterate directory list windows using For.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to For directory