• batch file

    • This topic has 4 replies, 3 voices, and was last updated 18 years ago.
    Author
    Topic
    #442628

    I am not sure this belongs in this forum. Sorry, could not find one for DOS.

    In a bactch file I need to copy a file from a server to somebody’s c: drive. The server names goes like this:
    bp1xxxx019group
    I get error messages when I try to use: xcopy bp1xxxx019groupfilename c:foldername
    Can anyone help?
    Thanks in advance!

    Viewing 1 reply thread
    Author
    Replies
    • #1065911

      You have only a single backslash before the server name, I assume that is just a typo.
      Does either or the paths / filenames contain spaces? If so, put quotes around the full path:

      xcopy "bp1xxxx019groupfile name" "c:folder name"

    • #1065912

      If Hans’ advice does not fix it please post the exact text of the error messages.

      Joe

      --Joe

      • #1065919

        The error message was ‘ invalid parameters’
        However, Hans’ advice worked like a charm.
        Thanks to both of you!

    Viewing 1 reply thread
    Reply To: batch file

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: