Xcopy in a bat file not copying any files - Win 11 - TechRepublic
Question
March 14, 2023 at 02:26 PM
rjmaccts

Xcopy in a bat file not copying any files – Win 11

by rjmaccts . Updated 3 years, 3 months ago

https://tek.io/3mSttAb

Hi Mark, all:

I’ve created a bat file to run basic xcopy to move Documents, Pictures, Desktop content to external drives. On a friend’s brand new Dell laptop running Windows 11, the batch file runs but 0 files copied.

Here’s a sample line:
xCopy “C:\Users\Robert\Desktop\*.*” d:\Robert\Desk /s /y /v /i /q /h /r /m

Strangely, when I open a CMD window and paste such a command in it, it WORKS! So, why not in the bat file?

Perplexed,
Robert

All Comments