Page 1 of 1 1
Topic Options
#108398 - 2003-11-19 07:19 PM Check for files
ulldott Offline
Lurker

Registered: 2003-11-18
Posts: 3
Hi,

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

-Ulldott

Top
#108399 - 2003-11-19 07:23 PM Re: Check for files
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Think this might be the ticket.
Top
#108400 - 2003-11-19 07:26 PM Re: Check for files
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Here is another one that uses the builtin DIR function.
Top
#108401 - 2003-11-20 07:48 AM Re: Check for files
ulldott Offline
Lurker

Registered: 2003-11-18
Posts: 3
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

Top
#108402 - 2003-11-20 08:34 AM Re: Check for files
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
xcopy or robocopy is the simplest solution here...

you can also look at FreshFile()
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (KevinOfOz) and 155 anonymous users online.
Newest Members
phanhuyen345, msmile032, bellamabel2018, lmnopq098068, nathanjame
17561 Registered Users

Generated in 0.028 seconds in which 0.011 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org