Page 1 of 1

a function who return the date of modification of a file

Posted: June 7th, 2018, 7:04 am
by thierryt
Hi all,
please i want to know if there is a function who return the date of the modification of a file, like :
Date("C:\test.dat") returns 07/06/2018.
Thanks.

Re: a function who return the date of modification of a file

Posted: June 13th, 2018, 9:19 am
by Gregory Martin
There is no such function in CSPro. If you are executing the program on Windows, you could use execsystem to call a DOS batch file that calls dir and redirects the output to a text file. You could then read that output in CSPro and parse for the date.