Walk a directory/Non-recursively: Difference between revisions
Content deleted Content added
Omit Axe |
Simple9371 (talk | contribs) Add Batch File |
||
Line 94:
LOOP
END SUB</lang>
=={{header|Batch File}}==
A simple command that displays all EXE files in System32 directory non-recursively.
<lang>@dir /b "%windir%\system32\*.exe"</lang>
The same command inside FOR loop:
*Inside a Batch File:
<lang>@for /F "tokens=*" %%F in ('dir /b "%windir%\system32\*.exe"') do echo %%F</lang>
*Command-line:
<lang>@for /F "tokens=*" %F in ('dir /b "%windir%\system32\*.exe"') do echo %F</lang>
=={{header|BBC BASIC}}==
|