We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

List of file names without using the Directory tool

ppatane
8 - Asteroid

I need to get a list of file names from various directories that will be determined by the workflow.  The Directory tool does not allow for input so I can't use that. Is there another way to do this?
P.S. In my environment,, batch files are not allowed.

7 REPLIES 7
nagakavyasri
12 - Quasar

@ppatane You can use *.<file format> or <keyword>*.<file format> in Input toolScreenshot 2024-12-03 163213.png

ppatane
8 - Asteroid

@nagakavyasri That still does not allow for input from the workflow

nagakavyasri
12 - Quasar

@ppatane You can neither use Directory tool nor Input tool?

ppatane
8 - Asteroid

No, the workflow will produce the directory path to pull from: it might be e:\tech\abc one time and then e:\tech2\xyz the next time. Whatever tool I use needs to have an input port.

nagakavyasri
12 - Quasar

@ppatane Then may be Blob Input or Dynamic Input tool may help. You can union all the paths from Directory before these input tools. Run command may also be helpful.

apathetichell
20 - Arcturus

what do you mean by allow for input?

use a directory tool in a batch macro or an app -> dynamically change the directory via control parmeter/action tool or folder browse/text box -> action tool.

 

there are pretty much 4 ways to list directory content:

directory tool,

run command (.bat file)

python

R

all could allow for input -> all could not - depending upon how they are structured. the "normal"  way to 'allow for input' is to use a macro

flying008
15 - Aurora

Hi, @ppatane 

 

As @apathetichell  said, maybe you can use Python / R or other plugin tool to get it.

 

录制_2024_12_04_09_53_34_299.gif

Labels
Top Solution Authors