K
K
Kamil2021-08-09 14:01:38
cmd/bat
Kamil, 2021-08-09 14:01:38

Why writes Invalid number of parameters?

There is a script, the essence of which is to copy the necessary files from one source to another
. The script itself looks like this:

chcp 65001
@echo off
set src_folder="G:\.x\Free\__World\.MG\dirfiles\dir"
set dst_folder=C:\New\
for /f "tokens=*" %%i in (File-list.txt) DO (
      xcopy /S/E/y/i "%src_folder%\%%i" "%dst_folder%\%%i"
)


I specify in the .txt file something like this list, each path on a new line:
facedata\武侠男\胡子模型库\Textures\rw_xxxx.dds
  facedata\武侠男\胡子模型库\Textures\胡子b02.DDS

And actually, at startup, I get an error:
Invalid number of parameters
Invalid number of parameters
Invalid number of parameters
Invalid number of parameters
Invalid number of parameters
Invalid number of parameters
Invalid number of parameters

Where did I go wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kamil, 2021-08-09
@Lakika

Understood. Extra quotes in set src_folder=

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question