In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
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