1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Can't copy from a drive mapped locallly

Discussion in 'Windows Server System' started by GerrardM, 2007/11/02.

  1. 2007/11/02
    GerrardM

    GerrardM Inactive Thread Starter

    Joined:
    2007/11/02
    Messages:
    2
    Likes Received:
    0
    I have a 2000 server that has a shared folder set up as a local mapped drive. If I try to copy from or to the folder using it's mapped drive letter (totaling about 1400 files and about 4 gb) using the dos copy command (this is set in a batch file) to another folder on the same server using the same mapped drive letter the job fails half way through telling me I have a network error.

    If however I use drag & drop, or use dos copy from a physical drive rather than a mapped drive it works fine.

    I have a need to use this mapped drive so any help would be great..

    :confused:
     
  2. 2007/11/02
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    With batch jobs, you are better off using xcopy rather than copy. Xcopy has an /c switch that will allow it to continue even if errors occur. If you use > to pipe the output of the command, you can then easily track down any errors.
    Code:
    xcopy something somewhere > output.txt
    Will generate a file called output.txt containing the log/error messages generated during the xcopy process.
     

  3. to hide this advert.

  4. 2007/11/02
    GerrardM

    GerrardM Inactive Thread Starter

    Joined:
    2007/11/02
    Messages:
    2
    Likes Received:
    0
    Thanks Reggie,

    I will give it a go but ignoring the batch file, the problem occurs if I use Xcopy, copy or xtree gold when i use the local folder mapped to a drive. If I use these commands with the physical drive it works fine:-

    i.e.

    Say the folder in c:\root\test1 has 1000 files and I want to copy these to say c:\root\test2 then if I use copy, xcopy, xtg or drag & drop it works fine.

    If I then locally map say drive letter T to c:\Root and I now use copy, xcopy or xtg to copy the files as eg "copy t:\test1\*.* t:\test2\*.*" it will stop half way through and fail with a network error even though the mapped drive is not pointing to en external drive. As i say it is pointing to itself. also where is stops is random but around 1/3 to 1/2 way through the process..

    If you can shed any light on this it would be great as we have a need & reason to copy through a loca mapped drive

    Many thanks,
     
  5. 2007/11/02
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    If you monitor the traffic on your network connection, does it reflect the movement of data via its send/receive statistic?

    Is the server also your AD server?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.