0

I am using the command below:

C:\>xcopy /i /e %IDF_PATH%\examples\get-started\hello_world F:\Projekt1\Eclipse_kodok

The problem is every time I get the error:

Invalid number of parameters

Is there any method to solve this problem?

(I'm a beginner command prompt user.)

Vincent
  • 2,073
  • 1
  • 17
  • 24
Błoom
  • 1
  • 1
    It helps to include the error message you get. – Vincent Nov 06 '19 at 11:48
  • The error is no more or less than Invalid number of parameters. That's it. – Błoom Nov 06 '19 at 11:58
  • Possible dupe: https://stackoverflow.com/questions/30651776/xcopy-returns-error-invalid-number-of-parameters-when-exclude-parameter-is-set – Vincent Nov 06 '19 at 12:12
  • Does this answer your question? [xcopy returns error "Invalid number of parameters" when exclude parameter is set](https://stackoverflow.com/questions/30651776/xcopy-returns-error-invalid-number-of-parameters-when-exclude-parameter-is-set) – Jonathan Mar 07 '23 at 09:02

1 Answers1

1

First of all, try including source and destination in quotes (it is likely that %IDF_PATH% contains spaces).

Second, if the destination is a directory, use the backslash at the end.

like this:

xcopy /i /e "%IDF_PATH%\examples\get-started\hello_world" "F:\Projekt1\Eclipse_kodok\"

If the destination is a file, try to use this undocumented feature of xcopy:

xcopy /i /e "%IDF_PATH%\examples\get-started\hello_world" "F:\Projekt1\Eclipse_kodok*"

Hope this helps :-)

ienaxxx
  • 1,292
  • 1
  • 8
  • 7