Intelligent Automation & Macro Software  

Go Back   Tethys Solutions 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 07-03-2009, 03:46 AM
acornsales acornsales is offline
Junior Member
 
Join Date: Apr 2009
Location: Virginia, USA
Posts: 7
Send a message via Skype™ to acornsales
Default Appened Phrase to File Name

Hello:
We have a lot of files where we are modifiying and renaming, and basically I want to keep the same file name intact but just append a suffix onto the file name.

Example.

Original Files:

File1.html
File2.html

Renamed Files

File1-DONE.html
File2-DONE.html

How exaclty is this done?

Thanks,
Adam
__________________
Adam Raidabaugh
ACORN Sales Company, Inc.
http://www.acornsales.com
Reply With Quote
  #2 (permalink)  
Old 07-03-2009, 06:31 AM
FrankBradley FrankBradley is offline
Junior Member
 
Join Date: Jun 2009
Posts: 29
Default

Adam,

If your file names are located in a variable then why not perform a split of the variable so that each part is moved into a variable and then perform a merge of all three parts.
__________________
Frank Bradley
Centah Inc
Reply With Quote
  #3 (permalink)  
Old 07-03-2009, 06:32 AM
FrankBradley FrankBradley is offline
Junior Member
 
Join Date: Jun 2009
Posts: 29
Default

Adam,

If your file names are located in a variable then why not perform a split of the variable so that each part is moved into a variable and then perform a merge of all three parts.
__________________
Frank Bradley
Centah Inc
Reply With Quote
  #4 (permalink)  
Old 07-03-2009, 06:56 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

What you can do is, loop for each file in a specific folder and inside loop block check if file is modified in 0 or 1 day then rename the file by appending suffix to system variable, $Filename$.

We have attached a sample task for your reference. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Before running the task, you may need to change the folder location at line #1 as per your requirement.

Hope that helps.
Attached Files
File Type: atmn RenameModifiedFile.atmn (341 Bytes, 3 views)
Reply With Quote
  #5 (permalink)  
Old 07-03-2009, 11:11 AM
acornsales acornsales is offline
Junior Member
 
Join Date: Apr 2009
Location: Virginia, USA
Posts: 7
Send a message via Skype™ to acornsales
Default

Thanks this seems to do the trick, I was not using the $Extension$ Variable in my code and but this Loop does the trick and works like a champ.

Adam
__________________
Adam Raidabaugh
ACORN Sales Company, Inc.
http://www.acornsales.com
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 02:08 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved