sorry actually this explains it better and it is because you are using a dos based command to go to a windows based network redirector.... in short use copy command instead
http://support.microsoft.c
Main Topics
Browse All Topicsdo you know why i get this error of "Invalid number of parameters" when i use xcopy?
what is this "Invalid number of parameters?"
C:\Documents and Settings\hiro\Local Settings\Application Data\Microsoft\Outlook
>xcopy C:\Documents and Settings\hiro\Local Settings\Application Data\Microsoft\
Outlook \\server\Personal\H.Tamura
Invalid number of parameters
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
sorry actually this explains it better and it is because you are using a dos based command to go to a windows based network redirector.... in short use copy command instead
http://support.microsoft.c
You need to have quotations surrounding your source and destination paths. That's it. Copy this into your batch file.
xcopy "C:\Documents and Settings\hiro\Local Settings\Application Data\Microsoft\Outlook\*"
"\\server\Personal\H.Tamur
or this is a better syntax
xcopy "%userprofile%\Local Settings\Application Data\Microsoft\Outlook\*"
"\\server\Personal\H.Tamur
Nope, the reason for the problem is because Xcopy hasn't been designed for Windows XP or higher. It essentially is unchange from the original Xcopy that came with Dos 5.2...I think. Basically what that means is that Xcopy cannot follow the path and read the spaces in your path, unless you enclose it in "" (double quotes).
So if you rather use:
xcopy "C:\Documents and Settings\hiro\Local Settings\Application Data\Microsoft\Outlook" \\server\Personal\H.Tamura
(one 1 line of course) :)
Then it should work.
I assume that you're wanting to copy all the files in the oulook folder to the mail folder on the server?
are there any way i can unlock even in use of outlook?
and keep copying even after error?
C:\Documents and Settings\hiro>xcopy "C:\Documents and Settings\hiro\Local Setti
ngs\Application Data\Microsoft\Outlook" \\server\Personal\H.Tamura
C:\Documents and Settings\hiro\Local Settings\Application Data\Microsoft\Outlook
\archive.pst
C:\Documents and Settings\hiro\Local Settings\Application Data\Microsoft\Outlook
\archive1.pst
File creation error - The process cannot access the file because another process
has locked a portion of the file.
Copying of a file that is open will only work if you're copying from a workstation/server that allows for Volume Shadow copying or similar. Otherwise forget about it. If a file is open, it would be in exclusive mode and it will only be released when the application that opened it is terminited.
To continue after errors use the /C switch (Just place the switch at the end after the statement, switches are seperated by spaces)
Another usefull switch is /H for hidden or system files.
Check out the full list of switches by typing xcopy /? at the command prompt.
Business Accounts
Answer for Membership
by: briancassinPosted on 2005-04-25 at 19:12:50ID: 13863606
the reason you are getting an error is it is too long of a path for xcopy to understand, you will have to shorten the paths.