Solved

xcopy command returns   invalid drive specification

Posted on 2009-06-29
5
843 Views
Last Modified: 2012-05-07
I am trying to find out why  when I run the following command I get the invalid drive specification returned from xcopy when I try to copy a file from a remote server to the local server.

xcopy \\xxx.xxx.xxx.xxx\share d:\share

also tried


xcopy "\\xxx.xxx.xxx.xxx\share" "d:\share"

xcopy "\\xxx.xxx.xxx.xxx\share d:\share"

I can ping the remote server and have opened IP and ICMP thru the firewall. Both servers has the same user name and password configured. Everyone has full access to both the network share and and the local folder. I have the same problem regardless of which remote machine I try the command from. If I try from a local machine it works. It would seem to be a firewall issue. Anyone have any idea of what to open to allow this data tramsfer to work?
0
Comment
Question by:jimmylew52
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 13

Expert Comment

by:3nerds
ID: 24737437
0
 
LVL 1

Author Comment

by:jimmylew52
ID: 24737675
I opened port 445 on both routers and still get

invalid drive specification   returned from the xcopy command
0
 
LVL 13

Accepted Solution

by:
3nerds earned 500 total points
ID: 24737943
You may need the following ports open as well. But I would look at the logs on your firewall and see what ports are being blocked. Also keep in mind the ports have to be open in both directions.

netbios-ns 137/tcp nbname
netbios-ns 137/udp nbname
netbios-dgm 138/udp nbdatagram
netbios-ssn 139/tcp nbsession

Regards,

3nerds
0
 
LVL 1

Author Comment

by:jimmylew52
ID: 24738208
All outgoing traffic is allowed on both routers.  TCP and UDP have been allowed into the remote server. I will check the local.
0
 
LVL 1

Author Comment

by:jimmylew52
ID: 24738935
Opened  netbios ports on the local router. TCP and UDP were already open on the remote router.

Still get the same response

invalid drive specification   returned from the xcopy command
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses
Course of the Month9 days, 6 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question