Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

Alteryx Designer Desktop Discussions

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

Write more than one line of script to Run Command tool

45179902
8 - Asteroid

I'm trying to write the following two lines of scripts to the Run Command tool:

MKDIR "directory"

del "%~f0" & exit

The first line of script will create a directory (folder), and the second line of script will self destruct the created .bat file. I continue to get an error (error code: 1), but I don't understand how to fix it. 

del "%~f0" & exit

works in another Run Command that I wrote.

Please help!

3 REPLIES 3
csmith11
11 - Bolide

Please see the config below. Also Solution Attached. The Bat creates a Directory then self destructs on my machine. No issues.

csmith11_0-1641483539207.png

 

Please let me know if you are able to implement on your end. If so, please consider marking this as the solution to help other community members identify the solution faster in the future.

 

 

 

45179902
8 - Asteroid

@csmith11  Awesome! You saved my project ~ I guess I did something wrong in configuration, but I don't remember how exactly I configured the .bat file as it apparently didn't accept more than one line of scripts.

csmith11
11 - Bolide

@45179902 I must thank you as well. I didn't know it was possible to have a Bat file delete itself. Very clever solution! I'll be implementing it in future projects as well.

Labels
Top Solution Authors