How do you do....it? Thread, xcopy syntax in Technical; I'm having trouble with xcopy as I can't seem to get the syntax correct Keep getting Invalid drive specification.
27th August 2010, 11:39 PM #1
I'm having trouble with xcopy as I can't seem to get the syntax correct Keep getting Invalid drive specification.
I want to copy a users files from a PC to a network location. I know it's xcopy source destination just not sure how to specify those. Can anyone help me please?
Not to worry think I've found it - had \\ at the start of destination when it should just have been the server name. Will find out in the morning.
Last edited by leco; 27th August 2010 at 11:48 PM.
Reason: found solution - I think
28th August 2010, 09:42 AM #2
I think you still need the backslashes if you are using a UNC path. Should be something like:
I always wrap my source/destination in quotes, but this is especially important if you have a space anywhere in either of the paths.
XCOPY "C:\Folder\Files\*" "\\SERVER\SHARE\Folder\Files\*" /switch1 /switch2 /switch3
28th August 2010, 10:37 AM #3
Thanks Hightower - I think I've found the problem, eventually. The user I was logged in as does not have permissions on the server! Simple user error, comes of working too long and too late. Will have another go today.
By leco in forum Windows 7
Last Post: 5th August 2010, 08:02 AM
By birchanger in forum O/S Deployment
Last Post: 24th July 2009, 04:02 PM
By itgeek in forum Scripts
Last Post: 4th June 2009, 10:29 AM
By ScottStevinson in forum How do you do....it?
Last Post: 8th September 2008, 01:01 PM
By CyberNerd in forum *nix
Last Post: 30th May 2007, 02:50 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)