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: IncrementFilename Function Issue
Topic Summary: Not working as expected
Created On: 04/19/2018 04:04 PM
Status: Read Only
Linear : Threading : Single : Branch
 IncrementFilename Function Issue   - HerminioPereira - 04/19/2018 04:04 PM  
 IncrementFilename Function Issue   - Justin Aucoin - 04/25/2018 09:32 AM  
 IncrementFilename Function Issue   - HerminioPereira - 04/26/2018 01:46 PM  
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by HerminioPereira, on Thursday, April 26, 2018 1:46 PM

Hi Justin,

Thank you!
 04/19/2018 04:04 PM
User is offline View Users Profile Print this message

Author Icon
Journeyman (50-99)

Posts: 51
Joined: 07/24/2012


I've noticed weird behavior using this function.

None of help examples are reproducible, unless the file exists in specified path (directory) AND file extension has exactly 3 characters size.

Can you confirm this?

You can reproduce the step as follows:


%IncrementFileName("")% | "(1)"
%IncrementFileName(".EXE")% | "(1).EXE"
%IncrementFileName("A")% | "A(1)"
%IncrementFileName("FILE.EXE")% | "FILE(1).EXE"

%IncrementFileName("c:\temp\test.t")% | "c:\temp\test (1).t"
%IncrementFileName("c:\temp\test.tx")% | "c:\temp\test (1).tx"
%IncrementFileName("c:\temp\test.txt")% | "c:\temp\test (1).txt"
%IncrementFileName("c:\temp\test.txtx")% | "c:\temp\test (1).txtx"
%IncrementFileName("c:\temp\test.txtxt")% | "c:\temp\test (1).txtxt"</AMSHOWDIALOG>

PS: I'm using BPA Server Enterprise (x64), on Windows 7 and Windows Server 2012 R2 Operating Systems

 Category Survey
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 480 guests browsing this forum, which makes a total of 480 users using this forum.

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

Sitemap Network Automation Software Blog