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:
Thanks for your help
Solved! Go to Solution.
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
Here is a macro example using XCopy.
The Run Command uses the following configuration:
for your example, you would change the Command Arguments to:
/c ren *.chart *.txt
Does this help?
Thanks,
mark
One trick I find useful is to wrap it in a cmd call:
Allows you to call the standard set of dos commands then.