Link to home
Start Free TrialLog in
Avatar of ICSAutomation
ICSAutomationFlag for Switzerland

asked on

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??


Avatar of TopMasterchief
TopMasterchief

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 \ \ \
Avatar of ICSAutomation

ASKER

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"
ASKER CERTIFIED SOLUTION
Avatar of bcoyxp
bcoyxp
Flag of Saudi Arabia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial