a function who return the date of modification of a file

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
thierryt
Posts: 47
Joined: April 26th, 2017, 12:17 pm

a function who return the date of modification of a file

Post 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.
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

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

Post 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.
Post Reply