<cut>
Quote:
> But my 'SyncFile' function uses the DIR$ function too
> which is clearing the DIR$ in my loop. Is there a way to
> have to instances of the DIR$ function so one does not
> overwrite the other? -Kevin
No. Why does SynchFile use it? If it's just to test for file existence
then there are better ways to do that (and this is the exact reason why you
NEVER use Dir$ to test for existence). If SyncFile needs to loop then you
can use Dir$ in a loop to build an array or collection of filenames first
and then process that calling SynchFile for each entry. You can also switch
to the FindFirstFile/FindNextFile/FindClose API calls which can be used to
run multiple simultaneous directory scans.
--
Reply to the group so all can participate
Personal replies to bob Chr$(95) butler Chr$(64) cox Chr$(46) net
VB.Net... just say "No"