I am using xcopy to backup user files on  a networked drive but xcopy can't see the drive, what is wrong?
I am using SBS 2008, I have Drive J mapped to example "Users\shares\Linda" here is my command line: CD\Users\Linda\Desktop\ XCOPY *.* J:\Notebook\Desktop\*.* /E /H /R /K /Y /J but it can't find J: and errors out. But the shorcut to J is on the desktop and when you double click it, you go to J no problems. What is wrong, or should I use something else besides the old XCopy command?
January 31st, 2011 4:14pm

the J: drive has to be available within the Command Window for XCOPY to be able to target it. Make sure that you can access J: from within the command window, and if you can't you'll have to map it first using NET USE
Free Windows Admin Tool Kit Click here and download it now
January 31st, 2011 4:19pm

Don't use the last set of wildcards... the command should be run from the prompt C:\USERS\Linda\Desktop>XCOPY *.* J:\Notebook\Desktop\ /e /h /r /k /y /j r/ johnJohn Wildes | Senior Enterprise Architect | United Airlines | Desktop Engineering
January 31st, 2011 4:19pm

It can't find "J:" or it can't find "J:\Notebook\Desktop\*.*"? Try it without the second "*.*" and see what happens.
Free Windows Admin Tool Kit Click here and download it now
January 31st, 2011 4:21pm

That makes more sense, but here is what I used and received a "Invalid Drive Specification" cls net use J: CD\Users\Linda\Desktop\ XCOPY *.* J:\Notebook\Desktop\ /E /H /R /K /Y /J after the net use J: I received the following: Local Name: J: Remote Name: \\SBS2008\Users\Shares\Linda Liebert-Hall Resource Type: Disk The command completed successfully. I must still be using it wrong. Thanks for your help!
January 31st, 2011 4:36pm

As odd as it may sound, it looks like it might actually be expanding the UNC name and it doesn't like the space. Try this command instead: XCOPY *.* "\\SBS2008\Users\Shares\Linda Liebert-Hall\Notebook\Desktop\" /E /H /R /K /Y /J Note the quotes around the UNC path name.
Free Windows Admin Tool Kit Click here and download it now
January 31st, 2011 5:07pm

Hi, Did your issue solved by the suggestion of Bob and James? Please feel free to give me any update. Thanks. Regards, Leo Huang TechNet Subscriber Support in forum. If you have any feedback on our support, please contact tngfb@microsoft.comPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
February 2nd, 2011 9:01pm

Hi, I will mark their reply as answer. It could help other communities here who have the same issue. Thanks for your understanding. Regards, Leo Huang TechNet Subscriber Support in forum. If you have any feedback on our support, please contact tngfb@microsoft.com Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
February 6th, 2011 9:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics