../pvss.htm menu.gif basics.gif

getYoungerFiles()

Returns all the files of a directory that has changed since a particular date.

Synopsis

dyn_string getYoungerFiles(string startDir, time startTime);

Parameters

Parameters

Meaning

startDir

Start directory

startTime

Start time

Return value

The function returns a dyn_string with all the matching files.

Errors

Description

Returns the names of all the files from the directory (and subdirectories) "startDir" whose contents have changed since a time "startTime" in a dyn_string.

 

IconExample

In the following example, all the files under "C:/" that have changed since 1.1.1999 will be transferred to the field ds and then outputted in the Log viewer.

main()
{
time t;
dyn_string ds; // field for file name
...
t=makeTime(199,1,1,0,0); // starting time
ds=getYoungerFiles("c://",t);
DebugN(ds); // output
...
}

Relates to

Management of managers

Availability

    UI

See also

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved