Alteryx Designer Desktop Discussions

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

Running a rename dos command from a Before Run Event

mutuelinvestor
8 - Asteroid

I'm trying to run the following dos command from a Before Run Event. 

 

ren *.chart *.txt

 

The problem is that when I run the script I'm getting the following error message:  

 

Error running Event #1: Failed to run external program "ren *.chart *.txt": The system cannot find the file specified.

 

Is there special formatting or syntax that I should be using:  I've included a couple of screen shots below:

 

Capture.PNG

 

Capture2.PNG

 

Thanks for your help
 

 

3 REPLIES 3
s_pichaipillai
12 - Quasar

Hi

you cannot specify the command directly in the Command box

 

you have to specify what type of command such as exe or dos etc

 

in your case add your comman in Batchfile and run it

please see the screen below
Rename.PNG

MarqueeCrew
20 - Arcturus
20 - Arcturus

Here is a macro example using XCopy. 

 

The Run Command uses the following configuration:

 

Capture.PNG

 

for your example, you would change the Command Arguments to:

 

/c ren *.chart *.txt

 

Does this help?

 

Thanks,

mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
jdunkerley79
ACE Emeritus
ACE Emeritus

One trick I find useful is to wrap it in a cmd call:

 

beforeEvent.jpg

 

Allows you to call the standard set of dos commands then.

Labels