Fast way of getting all files in sub folders

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Fast way of getting all files in sub folders

Post by Grovkillen » Tue Feb 12, 2019 2:45 pm

Code: Select all

Let>START_FOLDER=%SCRIPT_DIR%
Let>GET_FILES_COMMAND=cmd /c dir "%START_FOLDER%" /s /b | clip
Let>RP_WAIT=1
RunProgram>GET_FILES_COMMAND
WaitClipBoard>
GetClipBoard>ALL_FILES,0
Separate>ALL_FILES,%CRLF%,FILE
//MDL>FILE_count
Change "START_FOLDER" to whatever you want.

PS: piping to "clip" is not supported under WinXP!
Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts