Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm trying to use the Xcopy command to send files from one server to another and it doesn't work.
I use this line and it should work but it doesn't.xcopy \\server_oracle\respbasedato\*.* \\hbdomainserver\Respaldos Bases de Datos\SIFA\ /v /Y
I run the batch file from the first server and I do it from any WinXP computer and it doesn't work.
The server_oracle server is not in the domain but it doesn't even start to send the files, I don't even get errors....It just doesn't work.
I see the MSDOS screen for less than a second when I excute the batch file but I can't see if there's an error in there.I need to know how to make it work.
Thanks.

Well for starters you could run the batch file from within a command prompt (DOS window) so if there are errors you'll be able to see them.
That might get you started in the right direction.

There is no MS-DOS Screen, no MS-DOS either, it is NT COMMAND PROMPT:
http://www.ss64.com/nt/
Yes you need to run the commands in the NTCP window......

http://technet2.microsoft.com/WindowsServer/en/library/552ed70a-208d-48c4-8da8-2e27b530eac71033.mspx?mfr=true

put a pause at the end of the batch to see errors or at a cmd prompt redirect your batch to a log file like so;
xcopy.bat >log.txtBest yet is manually enter the line in a cmd prompt and see what it says.
Give a person a fish, they eat for a day. Suggest they internet search and they learn a skill for a lifetime.

Ok, thanks to everybody who answered my message.
The error I'm getting is "invalid number of parameters"
What's that?

it means one of the characters in the command is wrong. check your spacings, / directions, etc

I would suspect the spaces in your command line are at fault:
Respaldos Bases de DatosEverything after Respaldos would be interpreted as switches.
This is when you have to put the line in "" but I forget if you are to include the whole distination path like;
"\\hbdomainserver\Respaldos Bases de Datos\SIFA\"Give a person a fish you feed them for a day.
Ask a person to internet search and they learn a skill for a lifetime.

This is why you usually map a drive to both source and distination in the batch file then run your xcopy.
For example:
rem start of batch file
net use x: \\server_oracle\respbasedato\
net use y: \\hbdomainserver\Respaldos Bases de Datos\SIFA\
xcopy x:\*.* y: /v
rem end of batch fileGive a person a fish you feed them for a day.
Ask a person to internet search and they learn a skill for a lifetime.

![]() |
Webhosting on my pc serve...
|
Win 2k3 server woes...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |