Results 1 to 5 of 5

Thread: batch file

  1. #1
    3 Star Lounger
    Join Date
    Oct 2004
    Location
    Houston, Texas, USA
    Posts
    242
    Thanks
    1
    Thanked 0 Times in 0 Posts

    batch file

    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!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: batch file

    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:
    <code>
    xcopy "bp1xxxx019groupfile name" "c:folder name"</code>

  3. #3
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,572
    Thanks
    5
    Thanked 1,057 Times in 926 Posts

    Re: batch file

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

    Joe
    Joe

  4. #4
    3 Star Lounger
    Join Date
    Oct 2004
    Location
    Houston, Texas, USA
    Posts
    242
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: batch file

    That did it!
    Thanks a lot, Hans!

  5. #5
    3 Star Lounger
    Join Date
    Oct 2004
    Location
    Houston, Texas, USA
    Posts
    242
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: batch file

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •