Pira.cz Technical Forum

FM Analysis => PIRA75/P175/P275 Control Software => Topic started by: m1k6 on December 06, 2021, 10:02:41 am

Title: FMS - Dynamic directory
Post by: m1k6 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.
Title: Re: FMS - Dynamic directory
Post by: Jan 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.