hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Email using Specific filenames

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Email
View previous topic :: View next topic  
Author Message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Tue Jan 22, 2013 9:57 am    Post subject: Email using Specific filenames Reply with quote

User support request:

Once a week we have to pick up XX_YYY 011013.xlsx.pgp and AA_BBB 011013.xlsx.pgp files from one directory, move them to other directory, let’s call it TEST. Then we have to decrypt them. After that they should be named XX_YYY 011013.xlsx and AA_BBB 011013.xlsx. Is there any way to use a variable for Filename and Rename Filename in Decrypt Task, since the filenames are change every time. The only stable part of them is XX_YYY *.xlsx.pgp and AA_BBB *.xlsx.pgp.

Then I have to send email to my coworker with attached files. Is this the any way to use variables for file names in the Attach File line of Send Email Task instead of C:\TEST\XX_YYY 011013.xlsx,C:\TEST\AA_BBB 011013.xlsx?
Back to top
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Tue Jan 22, 2013 10:01 am    Post subject: Reply with quote

a) You should move the 2 files to a temp folder (say c:\temp ) where we can decrypt the files and email them.

b) Then move these 2 files from c:\temp to final resting folder.


1) In your copy task (move option), for the filename field try:
XX_YYY^AA_BBB

target folder:
c:\temp

This should move both files.

2) In your decrypt task:

source folder:
c:\temp

filename field:
XX_YYY^AA_BBB

rename filename field:
.xlsx.pgp<REPLACE>.xlsx


3) In your email task:
attachment field:
[DIR]c:\temp[FILE]XX_YYY^AA_BBB


4) finally another move task from c:\temp to final resting folder.
source folder:
c:\temp

filename field:
XX_YYY^AA_BBB
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Email All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group