Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
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: Need Process to Archive old files keeping the folder structure.
Topic Summary: Looking for a process that will move older files keeping the directory structure intact.
Created On: 09/30/2013 08:59 AM
Status: Read Only
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.
 09/30/2013 08:59 AM
User is offline View Users Profile Print this message

Author Icon
OnAir
Apprentice (20-49)

Posts: 24
Joined: 04/06/2012

I have searched through the downloadable tasks and other tasks in the forum but run accross incompatible tasks as they may be using older code so I see N/A when the code cannot be displayed.

I need help with a task that can copy or move files older than 24 months to another location while keeping the directory structure intact as these files are in different folders and subfolders. I there anyone with a similar scenario?

Forgot to add that the folders have a date in the name such as 2007-10-20-customernumber.

Thanks.



 Category Survey
AutoMate 8 version: 8.0.0
Windows version: Windows 2008 R2


Edited: 09/30/2013 at 09:25 AM by OnAir
 10/01/2013 08:21 AM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hello,

Have you tried to use the "Only if older than" option in the File Options of the 'Copy' or 'Move' action? You can add the following expression for the last 24 months. %DateAdd( "m", -24, CStr( Now() ))%

Let us know if that will work for you.


 Category Survey
AutoMate 8 version:
Windows version:


-------------------------

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1112 guests browsing this forum, which makes a total of 1112 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog