Possible to copy files and directory structure but don't copy file contents (i.e. 0 byte file size)?

Possible to copy files and directory structure but don't copy file contents (i.e. 0 byte file size)?

I'm wondering if it's possible to copy files and directory structure, but don't actually copy file contents. I want to copy over file names and extensions but have each individual file be 0 bytes in size. From what I've read, it looks like Xcopy might be able to handle this, but that it might not copy files.

I'm open to all suggestions, but I'd prefer an included Windows utility if possible.

答案1

robocopy [SOURCE] [TARGET] /mir /create works for me.

答案2

Here's a walkthrough, it covers Xcopy, Robocopy (command line) and some other tools with GUI

相关内容