Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Neal
  •  Neal
  • No customer Topic Starter
2009-08-12T14:59:11Z
I need to rename a file but keep part of the existing name.
Current name: Test1_20080812.txt
New name must be: ABTestFile_<same date as current filename>.txt

The file can get created on a different date to when the file must be renamed, so I can not make use of a date varibale and I am not having luck with a working file mask.
Thanks.
Sponsor
Forum information
Support
2009-08-12T15:54:19Z
Is the first part of name "Test1" of a fixed length?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Neal
  •  Neal
  • No customer Topic Starter
2009-08-12T16:32:54Z
Yes it is a fixed length.
Support
2009-08-12T23:35:54Z
You could use the substring method like this:

ABTestFile{STRING(Substring|Test1_20080812.txt|6|12)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Neal
  •  Neal
  • No customer Topic Starter
2009-08-14T10:41:37Z
The problem is that original file name value is not static. So the date componetn of the file name (20080812) changes for every name.
Is there any way that I can specifiy the original file name in the substring i.e.
ABTestFile{STRING(Substring|{original file name here}|6|12)}
Scroll to Top