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.

How to run a batch file using Alteryx?

EN6924
10 - Fireball

Hi All,

 

I've created a simple batch script which will delete a specific type of files from inside a source directory.

 

Myscript.bat

========================================

@Echo OFF
DEL /s "C:\Users\Rano\Desktop\Demo\*.txt"

 

How can I run this script using Alteryx?

 

My use case: I wanted to search specific files using Alteryx and delete them.

 

Please help.

2 REPLIES 2
EN6924
10 - Fireball

It's using by configuring events. 

 

Will this run in Gallery too?

How can build the same workflow using Run Command Tool?

 

Please assist someone.

Prometheus
12 - Quasar

@EN6924 The only thing I can see that is different in this request from this one: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Find-and-Delete-duplicate-sour... is the command and file path. Change your command from "move" to "del" and only have one file path instead of two and you should be set with the batch macro I gave you. Gallery should run it, but it depends on your network's security settings. Replace the Run Command tool in your workflow with the batch macro and you'll be set.

Labels
Top Solution Authors