Network Automation Software
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Archiving by Date Modified
Topic Summary: Archiving 2009 files
Created On: 07/07/2010 06:53 AM
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 07/07/2010 06:53 AM
User is offline View Users Profile Print this message

Author Icon
NelsonPortillo
Expert (100-199)

Posts: 102
Joined: 09/20/2007

Hello,

I have attached my task and need some assistance. I need to archive files by modified date (all 2009 files). My task is not picking up all of the 2009 files in the folder and the files are not being deleted. Can you guide me in the right direction?

Thanks as always.

<AMVARIABLE NAME="varArchiveDate">01/01/2010</AMVARIABLE>
<AMVARIABLE NAME="varArchiveFrom">C:\Test\19th Birthday mailings*.*</AMVARIABLE>
<AMVARIABLE NAME="varArchiveTo">C:\Test\19th Birthday mailings\Birthday Mailings Archive-%Year(varArchiveDate)-1%.zip</AMVARIABLE>
<AMCOMPRESS SOURCE="%varArchiveFrom%" ARCHIVEFILE="%varArchiveTo%" TYPE="zip" COMPRESSION="max" PATHINFO="none" ISOLDERTHAN="%DateValue(varArchiveDate)%" />

 



Archiving.aml
Archiving.aml  (1 KB)

 07/07/2010 03:55 PM
User is offline View Users Profile Print this message

Author Icon
Rick Johnson (N.A.)
Master (500-999)

Posts: 895
Joined: 07/14/2008

Hi Nelson,

What are some of the filenames that are not being included?

-------------------------
- Rick Johnson
Network Automation
 07/08/2010 07:43 AM
User is offline View Users Profile Print this message

Author Icon
NelsonPortillo
Expert (100-199)

Posts: 102
Joined: 09/20/2007

Hello,

Here are some of the file names and the date modified is 2009.

19thBirthdayReportDec12009.txt

19thBirthdayforDec12009.txt

19thBirthdayReportNov12009.txt

19thBirthdayforNov12009.txt

 

 07/09/2010 02:29 PM
User is offline View Users Profile Print this message

Author Icon
Rick Johnson (N.A.)
Master (500-999)

Posts: 895
Joined: 07/14/2008

Hi Nelson,

I'm working with your task.

What folder are these txt files in?

-------------------------
- Rick Johnson
Network Automation
 07/28/2010 11:50 AM
User is offline View Users Profile Print this message

Author Icon
NelsonPortillo
Expert (100-199)

Posts: 102
Joined: 09/20/2007

Sorry for the late response, I have been out of the office. I appreciate your assistance. The txt files reside in the folder C:\Test. In this folder there are files with 2009 and 2010 date stamps. I want to be able to archive and compress ONLY the 2009 files from this folder.

 07/29/2010 11:26 AM
User is offline View Users Profile Print this message

Author Icon
Rick Johnson (N.A.)
Master (500-999)

Posts: 895
Joined: 07/14/2008

Hi Nelson,

The filenames that you listed would always be excluded regardless of the time stamp due to the compress action looking for "C:\Test\19th Birthday mailings*.*"

The files:
    19thBirthdayReportDec12009.txt
    19thBirthdayforDec12009.txt
    19thBirthdayReportNov12009.txt
    19thBirthdayforNov12009.txt

do not have a space between 19th and Birthday as well as between Birthday and mailings. Was it your intention to try to zip all files in the folder and just exclude 2010, or are some of the files older than 1/1/2010 also supposed to be excluded as well?

-------------------------
- Rick Johnson
Network Automation
 07/29/2010 01:14 PM
User is offline View Users Profile Print this message

Author Icon
NelsonPortillo
Expert (100-199)

Posts: 102
Joined: 09/20/2007

Hi,

Yes my intentions are to compress all files in the folder and just exclude any 2010 files.

 07/29/2010 01:28 PM
User is offline View Users Profile Print this message

Author Icon
Rick Johnson (N.A.)
Master (500-999)

Posts: 895
Joined: 07/14/2008

Hi Nelson,

The steps that I provided worked. I did need to run Task Builder as administrator (or run Task Administrator as administrator and edit the task from there) in order to get the task to run. Let us know how it works for you.

Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------
- Rick Johnson
Network Automation
 07/29/2010 01:53 PM
User is offline View Users Profile Print this message

Author Icon
NelsonPortillo
Expert (100-199)

Posts: 102
Joined: 09/20/2007

Thank you, I appreciate your help. We must be in different time zones, are we? I am heading out for the day and will attempt to run this task first thing tomorrow morning. I will post my results, thanks again.

 07/29/2010 01:57 PM
User is offline View Users Profile Print this message

Author Icon
Rick Johnson (N.A.)
Master (500-999)

Posts: 895
Joined: 07/14/2008

Hi Nelson,

Yes we are on PST here. We look forward to your response.

-------------------------
- Rick Johnson
Network Automation
 08/02/2010 08:33 AM
User is offline View Users Profile Print this message

Author Icon
NelsonPortillo
Expert (100-199)

Posts: 102
Joined: 09/20/2007

Rick,

That worked out well, I would like to delete the original files from C:\Test after the files are compressed.

 08/02/2010 03:20 PM
User is offline View Users Profile Print this message

Author Icon
Rick Johnson (N.A.)
Master (500-999)

Posts: 895
Joined: 07/14/2008

Hi Nelson

You can use the same variables on the Delete Files action that you used on the compress action.

The attached step may do the trick for you:

Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------
- Rick Johnson
Network Automation
 08/03/2010 07:04 AM
User is offline View Users Profile Print this message

Author Icon
NelsonPortillo
Expert (100-199)

Posts: 102
Joined: 09/20/2007

Rick,

Thanks for your patience and help. This task is working great now.

 08/04/2010 08:39 AM
User is offline View Users Profile Print this message

Author Icon
Rick Johnson (N.A.)
Master (500-999)

Posts: 895
Joined: 07/14/2008

Hi Nelson,

Excellent, glad that we could help!

-------------------------
- Rick Johnson
Network Automation
Statistics
9529 users are registered to the AutoMate Discussion forum.
There are currently 1 users logged in.

FuseTalk Enterprise Edition v3.2 - © 1999-2010 FuseTalk Inc. All rights reserved.

Sitemap