1.

Solve : Batch: Server Copy?

Answer»

Hi I was wondering if someone could help me with the code if I am trying to copy a folder and all of it's contents from one server to another folder in another server. OS Windows XP.

my code...

echo off
XCOPY Y:\Dom_SSDBS\LSSPD\787 ENOVIA Tailoring Process C:\Documents and Settings\rw131c\Desktop\testing bat /-y
pause
dir c:\windows

error: invalid number of parameters

Thanks... Quote

my code...

echo off
xcopy Y:\Dom_SSDBS\LSSPD\787 ENOVIA Tailoring Process C:\Documents and Settings\rw131c\Desktop\testing bat /-y
pause
dir c:\windows

error: invalid number of parameters

Thanks...


xcopy "Y:\Dom_SSDBS\LSSPD\787 ENOVIA Tailoring Process"  "C:\Documents and Settings\rw131c\Desktop\testing.bat" /-y

maybe /y instead of /-y

hope it helps
uli
Yes the quotation MARKS helped the code WORK, but I can't get it to copy folders, and all of it's contents. I added \*.* because nothing was being copied, but only the files are being copied. What is the code for the folders? +dir?

xcopy "Y:\Dom_SSDBS\LSSPD\787 ENOVIA Tailoring Process\*.*"  "C:\Documents and Settings\rw131c\Desktop\testing bat" /y

The code above COPIES all the files with out asking for overwrite permission. I need the folders to be copied as WELL. Please help.XCOPY comes with an alphabet soup of switches. Try adding the /s and /e switches. Better yet, xcopy /? from the command prompt will explain all the switches in detail.

Good luck. 8-)


Discussion

No Comment Found