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 12-12-2011, 11:37 AM
besupported besupported is offline
Junior Member
 
Join Date: Dec 2011
Posts: 1
Default Search and replace?

I have set up a script that automatically creates folders and copies files to new directories every week, like so:

Copy Files "$vPath-Input$\PD 10\1040 ODC YTD Detail Report.pdf" to "$vPath-Output$\1040.DOS.FSI-W\Budget\JSRs\2011\PD 10\1040 ODC YTD Detail Report.pdf"

And next week it would be like so:

Copy Files "$vPath-Input$\PD 11\1040 ODC YTD Detail Report.pdf" to "$vPath-Output$\1040.DOS.FSI-W\Budget\JSRs\2011\PD 11\1040 ODC YTD Detail Report.pdf"

There are about 6-700 such lines of code. We need to change the directories from 'PD 10' to 'PD 11'. Is that possible to do for all lines at once, or will we need to manually edit each line to reflect the changes?

I exported the script as a text file and opened it in Notepad++, then used its Replace function to replace all instances of 'PD 10' with 'PD 11'. However I cannot paste this script back into Automation Anywhere. Is something like this possible, or is there a way to search and replace?
Reply With Quote
  #2 (permalink)  
Old 12-12-2011, 04:18 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hi,

Unfortunately, you cannot change the path of multiple lines directly at one go, you will have to go through each line to change it manually. Also it is not possible to convert the text file back to .atmn file.

For future reference we recommend you to use a standard variable for assigning the path or folder name, very much similar to $vPath-Input$ you have used in the current task.

Regards.
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 05:37 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