It might be helpful if you posted at least the part of the code that is
having trouble. it's difficult to say what went wrong when we can't really
see what is even happening.

Steve H.

-----Original Message-----
From: Vincent Lim [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 9:35 AM
To: [EMAIL PROTECTED]
Subject: I have a list of Directories and FIles, how do I sort them out


Hello,

I have a listing of directories and files in a root directory which I
need to recreate at another Windows NT DOS shell machine.
The alogrithm I have implemented in general works like this:

# check if the listing exist in target machine
    # if exist, check if it is a file in target machine
        # if file, copy file over existing file in target
        # if directory, ignore
    #  if not exist, check if it is a file in source directory
        # if file, create directory path and copy file to target
        # if directory, create directory only

I am using the -e and -f test.  Something is jinking the test and the -f
does not work, so all my files always end up as directories in the
target.  What's wrong?  Or is there a better way?

TIA.
Vincent


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to