ulldott
(Lurker)
2003-11-19 07:19 PM
Check for files

Hi,

how do I create a simple script which reads all files in a directory an put the file names into an array ?

-Ulldott


ShawnAdministrator
(KiX Supporter)
2003-11-19 07:23 PM
Re: Check for files

Think this might be the ticket.

ShawnAdministrator
(KiX Supporter)
2003-11-19 07:26 PM
Re: Check for files

Here is another one that uses the builtin DIR function.

ulldott
(Lurker)
2003-11-20 07:48 AM
Re: Check for files

Thanks, it's close to what I need. Guess I need to some more reading since what I need is a two dimensional array. What I want to do is to read the file names of all files in a directory and their filetimes, then do the same on a local directory and compare them...then I add some code which will "synchronise" the files (office templates).

-Ulldott


Radimus
(KiX Supporter)
2003-11-20 08:34 AM
Re: Check for files

xcopy or robocopy is the simplest solution here...

you can also look at FreshFile()