Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2009, 01:34 PM
Clay Clay is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Default Copy File based on modification date

Hello,

I would like to be able to copy a file from 1 folder to another folder based on the modification date.

The files I want to copy will either be .xls, or .xlsx and will have different names each time the task is ran, which will be every 1/2 to 1 hour time intervals throughout the day.


Could you please advice on how I can accomplish this task.

Thank you,

Clay
Reply With Quote
  #2 (permalink)  
Old 08-24-2009, 03:35 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello Clay,

Please try below mentioned steps:

1 Start Loop " Each File in C:\AA"
2 If File date ("$CurrentDirectory$\$FileName$.$Extension$" modified date is in last 30 minutes) Then
3 Excel : Open Spreadsheet "$CurrentDirectory$\$FileName$.$Extension$". Active Sheet: Default. Session: Default
4 Pause
5 Excel : Close Spreadsheet . Session: Default
6 End If
7 End Loop

By using “Loop for Each file in a folder” command along with the use of Excel commands and series of system variables, the task will run for all the files (.xls or .xlsx) in the folder.

Hope it matches with your requirements.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 07:52 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved