Network Automation Software
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: File Rename
Topic Summary: Not getting expected results when I attempt to rename a file.
Created On: 02/07/2018 01:06 PM
Status: Read Only
Linear : Threading : Single : Branch
 File Rename   - JochenIdeker - 02/07/2018 01:06 PM  
 File Rename   - Ricardo Castaneda - 02/08/2018 03:35 PM  
 File Rename   - JochenIdeker - 02/09/2018 08:00 AM  
 File Rename   - Ricardo Castaneda - 02/12/2018 11:17 AM  
 File Rename   - JochenIdeker - 02/12/2018 11:22 AM  
 File Rename   - Justin Aucoin - 02/14/2018 08:38 AM  
 File Rename   - JochenIdeker - 02/15/2018 08:36 AM  
 File Rename   - Justin Aucoin - 03/12/2018 08:34 AM  
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 02/12/2018 11:22 AM
User is offline View Users Profile Print this message

Author Icon
Student (5-19 posts)

Posts: 15
Joined: 11/07/2014

The unchanged file name is RESULT_0001405712_Success20180205-082429-710.txt
The expected result is RESULT_1405712_Success20180205-082429-710.txt
Only thing that will need to change with the file name is to remove the first three zeros.
The file is expected on a daily basis. It is uncertain on when the file is delivered tho.

To answer your question, yes, that is the end of the file name.

 Category Survey
 02/14/2018 08:38 AM
User is offline View Users Profile Print this message

Author Icon
Justin Aucoin

Posts: 360
Joined: 02/15/2016

Hi Jochen,

We have identified an issue with the filename actions when using the wildcard as part of the filename. The file will keep the same overall file length, by adding the same number of characters as were removed. This issue will be submitted as a bug and the forum thread will be referenced so that you will be notified once a release is available that addresses the issue.

Below is a workaround that will first check if the file(s) starting with \\automatetest\d$\Inetpub\ftproot\Internal\Medline\RESULT_0001405712*.* exists, and if so populate it a dataset. The dataset will then be looped and a replace text action will be used to remove the desired characters from the file path. The variable will then be used for the file rename action. This method will work for multiple files as well as allowing you to easily schedule the task.

 Category Survey
AutoMate BPA Server 10 version:
Windows version:

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
18257 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 427 guests browsing this forum, which makes a total of 427 users using this forum.

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

Sitemap Network Automation Software Blog