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 01-27-2009, 01:31 AM
Jim Riley Jim Riley is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default Find and replace in task files (.atmn)

I have some three hundred files set up and on occassions need to change the same lines of code in all the files. Is there a facility to search and replace without having to open every file and manually change the line.
Reply With Quote
  #2 (permalink)  
Old 01-27-2009, 03:57 PM
kylepyro kylepyro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 28
Default

Jim - you would do that by opening the files in their editor and using its find/replace functions to fix them. Once that is done you'd save/close the file and then move on to the next file.
Reply With Quote
  #3 (permalink)  
Old 01-28-2009, 01:34 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Can you please tell us more about the command or line of code that you want to change?
If it is a value or string then you can replace it with a variable say $GlobalVar$. Create variable, $GlobalVar$ that would read value from a text file through Variable Manager. You can use this variable in any number of tasks. The value of $GlobalVar$ will not change until you update the text file. Now, whenever you want to update the command just change the value of $GlobalVar$ in text file.

For more information, please refer to our online task to read variable values from a text file. http://www.tethyssolutions.com/T12.htm

Hope that helps.
Reply With Quote
  #4 (permalink)  
Old 02-18-2009, 01:08 AM
Jim Riley Jim Riley is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default

Thank you for this suggestion. It is what we do today and it is the opening and closing of files that takes the time.
Reply With Quote
  #5 (permalink)  
Old 02-18-2009, 01:14 AM
Jim Riley Jim Riley is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default

Thank you for this suggestion but I do not think that you can use variables when entering the server location. Our problem was related to the fact that we had to change our server and many of the lines of code hold the server reference it was this piece of information that we wanted to change.
Reply With Quote
  #6 (permalink)  
Old 02-18-2009, 08:42 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Can you please tell us, in which command(s) you want to change the server location? Is it possible for you to upload the task so that we can look into it?
You can locate your task by selecting your task from Task List, right clicking that particular task and selecting 'Locate on disk' from context menu. Otherwise, you can also send text format of task. For that, open your task in a Task Editor, go to Tools->Save as text file and send this text file.
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 09:57 AM.


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