🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10903

Directory Listing in Networks

#10903
From: Thomas Steup
Date: Sat, 20 Mar 2004 01:22
23 lines
1741 bytes
Hi,
im'working on a application that mirrors newly created files between
different computers in a Local Area Network (mixed win2000pro and
win98). I'm periodically executing a FindFirstFile/FindNextFile- search
to retrieve the content of a remote directory (subdirectory of a
network share) using its unc path and then copy the found files. To
debug and optimize my code I think I need a better understanding on
what's going on when I do this kind of search in a LAN.

Questions :

Do FindFirstFile/FindNextFile search over a client-side image of the
directory or is there some kind of remote-call involved which scans the
original file system locally and delivers the result ?

If there is any client-side cashing of directory contents, when and how
does synchronisation occur ? How can i make sure that i find all new
files in the remote directory ?

Are there any differences in what's happening on win98 and win2000
systems ?

Thomas
Technical Details
Message-ID: <405b9ccb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c326c16b6972ebc5,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-19 17:39:47 PST
From: "Thomas Steup" <thsteup@aol.com>
Subject: Directory Listing in Networks
Newsgroups: borland.public.cppbuilder.nativeapi
User-Agent: XanaNews/1.15.8.5
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.239.19.2
Message-ID: <405b9ccb@newsgroups.borland.com>
Date: 19 Mar 2004 17:22:19 -0800
X-Trace: newsgroups.borland.com 1079745739 217.239.19.2 (19 Mar 2004 17:22:19 -0800)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail