X-copy command

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Geert
Posts: 2
Joined: 02 Mar 2016 01:16

X-copy command

#1 Post by Geert » 02 Mar 2016 01:28

I made a simple batch programme as follows :

xcopy "C:\Brugs Handelsblad 2015-2016" "G:\Brugs Handelsblad 2015-2016" /D /E /C /R /H /I /K /Y
xcopy "C:\Brugs Handelsblad 2015-2016" "\\MUNKCLOUD\MyLibrary\Data\Brugs Handelsblad 2015-2016" /D /E /C /R /H /I /K /Y

The first line works fine. It copies all the new and changed files and directories from one place to another (in this case an external hd)
The second line copies all the files and directories over and over again to the new place wich is a mapping to my own server, regardless if it are new or old unmodified files. The server is part of my own private network at home.

The parameters doesn't seem to work in the second line.

Someone an idea ??

Thanks for thinking.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: X-copy command

#2 Post by foxidrive » 02 Mar 2016 09:49

Have a look at robocopy.

What are the source and target volumes formatted in? All in NTFS?

Geert
Posts: 2
Joined: 02 Mar 2016 01:16

Re: X-copy command

#3 Post by Geert » 02 Mar 2016 10:01

aha, of course,
The second target volume is a linux-server which is mapped on a windows machine.
This must be the reason...

Thanks for opening my eyes, stupid of me.

I'll try robocopy too, many thanks !!!

Post Reply