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, Rain

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 313
Joined: Fri Aug 10, 2012 2:38 pm
Location: Hudiksvall, 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
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: MS14.5.4

Post Reply