Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Run Command Tool - Windows Power shell script

nmccarthy
6 - Meteoroid

I am trying to run a powershell command that deletes empty folders from a specified file path. Is there a way to make the filepath an input for the powershell script so I can easily switch between file paths?

1 REPLY 1
seinchyiwoo
Alteryx Alumni (Retired)

Yes you can by building an app and use a Folder Browse Interface tool.

I have a sample workflow that does that - attached.

seinchyiwoo_1-1608085517428.png

 

It's a workflow with a batch macro that encapsulate my command line in resaving a bunch of excels.

By adding a Folder Browse tool to my Directory tool in the workflow, it will be prompted as an app for use to pick their directory.

seinchyiwoo_0-1608085505583.png

 

Is this similar to what you are looking for?

 

Best,

Seinchyi

Labels
Top Solution Authors