Author Topic: Adding date to a file name  (Read 463 times)

Tags:
  • All members
  • Posts: 94
Adding date to a file name
« on: 11 May 2022, 08:35 »
I'm currently writing captured prices to a file using triggers.

Is it possible to get MF to 'introduce' the date into the file name automatically?; ideally something like C:\collected_prices\2022-05-11.txt?

Thanks.

  • Moderator
  • Posts: 3597
*
Re: Adding date to a file name
« Reply #1 on: 11 May 2022, 09:27 »
Hi
In the Write to file trigger use this as the file name in the File path field:
[now_time_datestr].txt

e.g.
C:\Users\Mark\Desktop\[now_time_datestr].txt

If the file doesn't exist it will be created. 
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

 

Please note, BetFair is seems to be currently OFFLINE