-1

Here is the code.

xcopy /c/s/z "%appdata%" "./backup"

Is there a way to make it not copy folders with nothing in them?

Jeanuz Debuzz
  • 21
  • 1
  • 4

1 Answers1

1

By specifying the /s switch, the xcopy statement will ignore empty directories and subdirectories by default.

Alex
  • 21,273
  • 10
  • 61
  • 73