I am having this Issue with Xcopy Command

seema kanwal 26 Reputation points
2022-07-27T12:07:19.683+00:00

Dear Community,

My XCOPY Script was running fine. I don't know why it's not running anymore and its giving me following error. Please guide me as why I could be facing this error. It's really annoying.
I have checked that the Fullpath is added and it's enclosed in commas etc. Also I have checked the Rights, there is no rights issue either. but still when I am running it gives Error.
Here is the screenshot:

225278-screenshot.png

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Olaf Helper 47,586 Reputation points
    2022-07-27T12:24:31.22+00:00

    I can't see anythink usefull in your screenshot, because you scratch the mots parts away.
    Do you access a UNC path / share or a drive by letter or ... ?
    What's the exact command you are using?


  2. Anonymous
    2022-07-27T14:09:12.743+00:00

    Most likley the UNC path. Try something like
    net use x: \Server_Name\C$
    then do
    xcopy X:\folder_name\file_name
    then at end do
    net use x: /delete

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  3. Gary Reynolds 9,626 Reputation points
    2022-07-28T10:13:21.463+00:00

    Hi @seema kanwal

    \10.1.0.31\f:\mns-Zakia.Ashraf is not a valid UNC path, as share name can't contain a colon (f:)

    225771-image.png

    It should probably be something like \10.1.0.31\f$\mns-Zakia.Ashraf or \10.1.0.31\mns-Zakia.Ashraf, depending if are using a drive root share or mns.ashraf share to access the target directory.

    Gary.

    0 comments No comments

  4. seema kanwal 26 Reputation points
    2022-08-04T04:59:31.46+00:00

    After removing "colon". I can run the xcopy command but I am having this issue. It gives a message saying "Insufficient Memory". Can you please guide me why is it saying that?

    Here is the screenshot attached:
    227899-command-manual.png


  5. seema kanwal 26 Reputation points
    2022-08-05T07:11:51.797+00:00

    But its giving this same error on every Path I am trying to copy.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.