How do I copy files where source and destination is specified by machine name

Hi

How do I copy files which is specified by source name as the machine + share and same for destination, instead of using drive letters.

Thus I am lookign for a syntax like this - copy \\source-machine-name\some folder \\destination-machine\some folder

Regards

yaminz66Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

iedenCommented:
Use wildcards for files copy \\Server\Share\Folder1\*.* \\Server\Share\Folder2\ /y /s
yaminz66Author Commented:
Sorry I meant copy \\server\share\Folder\*.* d:\  (d is a USB drive).

I try this and I get network pat not found.  
antony_kibble<!-8D58D5C365651885FB5A77A120C8C8C6-->Commented:
xcopy \\server\data\*.* \\backup\data

/y at the end if you want it to overwrite
/s at the end if you want subdirectories copied as well
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

iedenCommented:
D:\ is a drive and not a share on the same machine. Is this task being performed while the user is logged on or while in an unlogged in state?
yaminz66Author Commented:
HI

I am gone schedule this to run at a specific time. The command worked finally as I put the source directory within quotes as there was a space in it.

Hence xopy "\\machine\share folder\*.*" e:\  /y /s   worked.

Regards



iedenCommented:
Yes, but does it work when the PC is not logged in? There may be issues with the way Windows sees creds when not logged in for this particular instance... Since you mentioned scheduling, just thought I would ask because on Win7 2008R2 Secpol forbids saving of creds for tasks when users are not logged in.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yaminz66Author Commented:
HI

Well I have scheduled it for tonight, lets see if it works.

Regards

iedenCommented:
Have you had any success in your efforts?
yaminz66Author Commented:
Hi

Yes it did work - thanks for your help

Yamin
Glen KnightCommented:
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.