Running a rename dos command from a Before Run Event
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
One trick I find useful is to wrap it in a cmd call:
Allows you to call the standard set of dos commands then.
