"xcopy /i /y" command does not work as I expected to

Copper Contributor

I'm in windows 10 platform and want to copy folder1 content into folder2. The folder2 directory should be created automatically without using mkdir command. For this purpose I use xcopy command with /i /y flags, to suppress prompt message and create the directory If the directory doesn't exist. But even mentioned the required flags, xcopy command still prompting the following message:
Does newFolder specify a file name
or directory name on the target
(F = file, D = directory)?

0 Replies