File rename appending

Post variable and regex related tips, questions.

Postby Tech Support » Fri Oct 24, 2008 2:06 pm

In the append field, enter: .txt

The backup gets the same filename as the transferred file. There is no option for this.

Your only option is to use a copy task (for local backup) and append filename. For remote you would have to transfer again with date appended.
Tech Support
Site Admin
 
Posts: 1279
Joined: Thu May 25, 2006 11:12 am

Postby melvin » Sat Oct 25, 2008 8:17 am

which version are you using? 8.05 etc?
which task type is this , SFTP or SFTP-j?
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california

Postby Tech Support » Mon Oct 27, 2008 3:49 pm

We could not reproduce this on the 8.09 SFTP Task.

Try updating to 8.09 and see if the problem goes away.
Tech Support
Site Admin
 
Posts: 1279
Joined: Thu May 25, 2006 11:12 am

Postby Tech Support » Thu Oct 30, 2008 3:19 pm

The rename is automatically done using REGEX where * is a meta character which means 1 or more characters.

Try for the filename:
Financial - Daily Recon File.*

rename filename:
Daily Recon File

. matches any character
* matches 1 or more of what is to its left
so:
*. matches 1 or more of any character
Tech Support
Site Admin
 
Posts: 1279
Joined: Thu May 25, 2006 11:12 am

Postby melvin » Wed Nov 19, 2008 9:09 pm

I had no problem doing this:
2008-11-19 21:06:15 Source = C:\temp\Financial - Daily Recon File_2008-10-09-03-14-24.txt, Date = Aug 2, 2007 5:47:55 PM

2008-11-19 21:06:15 File copied to: C:\test\Daily Recon File


used:
File name:
Financial - Daily Recon File

rename field:
Financial - Daily Recon File.*<REPLACE>Daily Recon File
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california


Return to Variables and Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests

cron