Rename Variable File Name

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
jon
Newbie
Posts: 8
Joined: Fri Oct 21, 2005 4:45 am

Rename Variable File Name

Post by jon » Tue Apr 11, 2006 1:59 pm

I'm trying to rename a file that is saved to a directory every 5 minutes. The file name, for example is: 3823j66.jpg.

I tried doing a:
MoveFile>C:\Outgoing\*.jpg,C:\Outgoing\myfilename.jpg

But no luck.

Any suggestions, examples?

Thanks,
Jon

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Apr 11, 2006 2:26 pm

Try putting Let>MF_RENAME=1 ahead of the MoveFile> line. Also you will need to use the name of the file being renamed rather than a wildcard.

Hope this helps,
Dick

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Tue Apr 11, 2006 2:39 pm

The problem is that the source filename changes, so he's going to have to first find the name of the most recent file, and then use that in the rename. There are some examples on the forum for that.

jon
Newbie
Posts: 8
Joined: Fri Oct 21, 2005 4:45 am

Post by jon » Tue Apr 11, 2006 4:16 pm

I've tried searching the forum, but can't find what I'm looking for yet...

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Tue Apr 11, 2006 4:32 pm


Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts