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 02-03-2010, 06:37 AM
rlaliberte rlaliberte is offline
Junior Member
 
Join Date: Jun 2007
Posts: 29
Default Watch for new folder, act on that folder?

Ok, I admit I have not thought about this problem very much before coming to look for ideas.

Each day I have one or more folders created in a specific location. I need to take all the .txt files in these folders and copy them to a seperate location for processing into a storage system.

I can set up the trigger to watch for a new folder easily enough, but after that I am at a bit of a loss as to what direction to go in.
Reply With Quote
  #2 (permalink)  
Old 02-03-2010, 09:20 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 100
Default

Quote:
Originally Posted by rlaliberte View Post
Ok, I admit I have not thought about this problem very much before coming to look for ideas.

Each day I have one or more folders created in a specific location. I need to take all the .txt files in these folders and copy them to a seperate location for processing into a storage system.

I can set up the trigger to watch for a new folder easily enough, but after that I am at a bit of a loss as to what direction to go in.
1 - Loop through Each File in Folder
2 - Copy from Folder A to Folder B
Reply With Quote
  #3 (permalink)  
Old 02-04-2010, 03:27 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Adding to the previous comment, using combination of loop for folder in a folder and loop for file in a folder, we can make task to run for any number of folders or files located at specific location.

A sample task is attached for reference. The sample task will ask for the specific location to look for .txt file and finally copy it to different location.

Attachment contains “Test” folder containing text file, excel file, word file and folder 1 and 2. Folder 1 and 2 are also containing txt file. Folder “Result” is destination folder where all the files are required to be transferred.

To run sample task please follow the below mentioned instructions:
1. Save and extract the zip file at any location.
2. Save folder “Test”, “Result” and text file “FolderPathList.txt” on C:\
3. Save FolderFile.atmn at My Documents\Automation Anywhere\Automation Anywhere\My Tasks
4. Launch Automation Anywhere.
5. Select the task and click on run.
6. When the prompt appears select C:\Test and click on OK
7. All .txt files from folder "Test" and sub folder "1" and "2" will be copied to folder “Result”

Hope it helps!
Attached Files
File Type: zip FolderFile.zip (4.2 KB, 3 views)
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 08:50 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