• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 958
  • Last Modified:

xcopy command returns invalid drive specification

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
jimmylew52
Asked:
jimmylew52
  • 3
  • 2
1 Solution
 
3nerdsCommented:
0
 
jimmylew52Author Commented:
I opened port 445 on both routers and still get

invalid drive specification   returned from the xcopy command
0
 
3nerdsCommented:
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
 
jimmylew52Author Commented:
All outgoing traffic is allowed on both routers.  TCP and UDP have been allowed into the remote server. I will check the local.
0
 
jimmylew52Author Commented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now