Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

That is, to traverse a directory and create a replica with zero-sized files.

I currently use xxcopy /E /TR0 but it's very slow.

share|improve this question
What is "very slow"? Getting over a about hundred items/second is unlikely no matter what technique you use. (typical hard disk 9ms access time, 1s/9ms = ~111 operations/second) Of course if you're using a sold state disk (Access time ~.1ms) then things should be much quicker. – Billy ONeal Nov 14 '10 at 6:41

I can't talk about speed, but what you could do is this: Download the unix 'find' binary for windows and then create a script/c program to process the output.

share|improve this answer
-1 for two reasons: 1. DIR /B /S does exactly what you need here without a third party utility. 2. (more importantly) This does not answer the OP's question. Find will give you a directory list but it's certainly not going to create any kind of directory structure. – Billy ONeal Nov 14 '10 at 6:45
Okay, sorry, should have known. Thanks for the info. – 0fnt Nov 14 '10 at 9:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.