Hi everyone,
How do I script jsl to open the newest file in a directory that contains a specific naming convention? I have the following code which will open the newest file in the directory:
(
OpenNewestFile = Files In Directory( "C:\users\me\MyDocuments\" );
{t,p}={0,1};
for(i=1, i <= n items(OpenNewestFile),i++,
ti=Last Modification Date("C:\users\me\MyDocuments\" || OpenNewestFile );
If(ti>t,t+ti;p=i));
dt1 = Open("C:\users\me\MyDocuments\"||OpenNewestFile
)
);
Once per day a new file is written into the directory with a name something like "FD_History_2016_08_27_17_36.csv"
How can I modify this script to find the most recent "FD_History_" file and open it while ignoring any other files in the directory?
Thanks in advance!