• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 922
  • 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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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