• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 935
  • Last Modified:

Copy files from c:/Documents and Settings\All Users\Application Data\*.* from a *bat File

Hello
If I start a *.bat file with

xcopy  \E\R\Y C:/Documents and Settings\All Users\Application Data\ArchestrA\LofFiles\*.*  D:\LogData

I get the error message " invalid nubmer of parameters.

Any idea??


0
ICSAutomation
Asked:
ICSAutomation
1 Solution
 
TopMasterchiefCommented:
try xcopy  /E/R/Y C:/Documents and Settings\All Users\Application Data\ArchestrA\LofFiles\*.*  D:\LogData


suppose to be /E/R/Y  instead of \ \ \
0
 
ICSAutomationAuthor Commented:
I had it as  /E/R/Y C:/Documents and Settings\.... I just tiped it wrong in the question, my mistake, sorry!

I guess the problem comes from the spaces in" Documents and Settings"
0
 
bcoyxpCommented:
quotation mark

xcopy  \E\R\Y "C:\Documents and Settings\All Users\Application Data\ArchestrA\LofFiles\*.*" D:\LogData

Regards,
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now