Suppose we have some directory containing files then how can we move .xlsx files to somewhere else.
Approach 1: Using “Get File Names” + “Move Files”
-
Get File Names
-
Folder: Specify the source directory where your files are stored.
-
Regex/Filter: Use a regex to pick only
.xlsxfiles. A correct regex would be:.*\.xlsx$Explanation:
-
.*→ any file name -
\.xlsx→ ends with.xlsx -
$→ end of string
-
-
-
Move Files
-
Use the output list from “Get File Names” step.
-
Destination Folder: Specify where you want the files to go.
-
Advantage: Gives you control over the files you’re moving and allows pre-processing (like logging, filtering, etc.).
Approach 2: Using “Move Files” with Filter Directly
-
Move Files step has built-in options:
-
Source Folder: Your original folder.
-
File Filter/Regex: Directly put:
.*\.xlsx$ -
Destination Folder: Where the files should go.
-