xcopy

G

Guest

I'm using the xcopy command to copy files from z:\*.* to u:\backup\ but the
contents being copied are also not complete. This is the command I use :-

xcopy z:\*.* u:\backup\ /s/e/i/y

z:\ contains folders and sub-folders...
Say z:\ has 5235 files and 512 folders and after the xcopy command has
completed the task with no error, I'll do a check on u:\backup\ folder and it
will list only 2431 files and 166 folders. The figures are always changing
and is it because of the nbr of files and folders being copied ?

Thanks if someone out there could help......
 
S

Stuart

I'm using the xcopy command to copy files from z:\*.* to u:\backup\ but the
contents being copied are also not complete. This is the command I use :-

xcopy z:\*.* u:\backup\ /s/e/i/y

z:\ contains folders and sub-folders...
Say z:\ has 5235 files and 512 folders and after the xcopy command has
completed the task with no error, I'll do a check on u:\backup\ folder and it
will list only 2431 files and 166 folders. The figures are always changing
and is it because of the nbr of files and folders being copied ?

Thanks if someone out there could help......

get rid of the /s switch just use the /e switch, you could also try the /c
switch but you will probably need the /h switch which copies hidden and
system files

Stuart
 
K

Kerry Brown

Are you using it in a script or from the cmd prompt? If it's in a script do
you do any error checking? If the cmd prompt are there any error messages?
 
T

Torgeir Bakken \(MVP\)

yorhog said:
I'm using the xcopy command to copy files from z:\*.* to u:\backup\ but the
contents being copied are also not complete. This is the command I use :-

xcopy z:\*.* u:\backup\ /s/e/i/y

z:\ contains folders and sub-folders...
Say z:\ has 5235 files and 512 folders and after the xcopy command has
completed the task with no error, I'll do a check on u:\backup\ folder and it
will list only 2431 files and 166 folders. The figures are always changing
and is it because of the nbr of files and folders being copied ?

Thanks if someone out there could help......
Hi,

Instead of xcopy, you can use the command line tool Robocopy.exe, it
has builtin support for logging to file (and a /lot/ more).

Robocopy.exe is in the free Windows Server 2003 Resource Kit:

http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

(The kit will install on WinXP or later, the individual files can
then be copied to another computer if needed)


See rktools.chm and robocopy.doc for documentation for Robocopy.exe.
 
G

Guest

Thanks for replying, I'm using it in the cmd prompt and there are no error
messages. Just to note that I'm copying from a novell directory to the
windows file server.
 
S

Stuart

Thanks for replying, I'm using it in the cmd prompt and there are no error
messages. Just to note that I'm copying from a novell directory to the
windows file server.

OK if hte /h switch doesn't work are any of the novell files marked as
copy inhibit and do you have permission to all of the novell folders?

Stuart
 
G

Guest

Thank you guys, the robocopy.exe done the job pretty well. Really appreciate
the help and advice rendered. Keep it up.

Cheers :)
 
K

Kerry Brown

Your welcome. Robocopy is well worth learning if you're copying files over a
network.
 
G

Guest

Hi Kerry,
2 more questions :-
1. How can I use robocopy to copy only 3 dirs out of 10 dirs in a drive ?
2. How can I use robocopy to backup. For example, I like to copy these 3
dirs to another a backup folder for everyday ? meaning Day1, Day2, Day3... I
like to keep these daily backup. How can I automate in a batch file for this
to work ? I tried a batch file using the %1 switch. First it creates a folder
%1 and then it copies the 3 dirs to that folder %1 but is there a auto way to
do this or is there a way for the batch file to read some values store in a
file or something ?

Thanks !!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top