Author Topic: FMS - Dynamic directory  (Read 5226 times)

m1k6

  • Newbie
  • *
  • Posts: 12
  • Hello!
FMS - Dynamic directory
« on: December 06, 2021, 10:02:41 am »
Hello,
I would like to store data in a directory for each day, like D:\2021-12-06.
I couldn't find an info on how to check if an directory exists, can you help me?

Thanks in advance.

Jan

  • Hero Member
  • *****
  • Posts: 1137
Re: FMS - Dynamic directory
« Reply #1 on: December 06, 2021, 10:44:04 am »
Use this line:

Code: [Select]
execute(cmd,/c md D:\%date)
No need to check if the directory exists, that does the md command itself.