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: Attempting to create a task to read txt and copy files based on that.
Topic Summary:
Created On: 05/04/2017 04:34 PM
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.
 05/04/2017 04:34 PM
User is offline View Users Profile Print this message

Author Icon
n00b (>6 posts)

Posts: 1
Joined: 05/04/2017

I am new to automate and having a difficult time attempting to create a task to do the following:

I have a txt file with a list

  • ex : 123456,
  • 789101,
  • 121314,

Need automate to read the file, then based on the comma (or line break) to separate the values so that I can then run a copy command based on that.


read and copy file 123456.doc from d:there to c:here

read and copy file 789101.doc from d:there to c:here

Was able to remove the commas and keep just the values with line breaks but having an issue making it reading each separate value.

Any assistance is appreciated!

 05/05/2017 02:02 PM
User is offline View Users Profile Print this message

Author Icon
Justin Aucoin

Posts: 360
Joined: 02/15/2016

Hi Robert,

You can use the steps below as an example.

Once the data is in the variable and separated by line breaks, you can use the Loop List action, selecting New Line as the delimiter. The line will be stored in a variable, called varLine in the example, that is updated on each pass of the loop. You can then use the varLine variable as part of a File System move or copy action as shown in the example.

These steps were created in AutoMate 10.

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


Justin Aucoin | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 6686 on 11/01/2020 at 01:24 AM.
There are currently 3049 guests browsing this forum, which makes a total of 3049 users using this forum.

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

Sitemap Network Automation Software Blog