Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

From XP's Command Prompt, I am using XCOPY to copy directory structure of s:\bloo\"[8family]\"[30-40genus]\"[5species]\ and want to limit the structure to just the genus and families, and ignore the species. However, looking through the options for XCOPY none seem on the face to apply to this.

Is there a switch I should be using to limit this? If not, is there a nice batch delete function that I can use to trim the [species] directories from the [genus] directories? (note: corporate lock-down, cannot install applications)

share|improve this question
up vote 1 down vote accepted

Here is the hard-to-find XP026 build of Robocopy, which fixes some bugs from the build from the Windows Server 2003 Resource Kit. This version still works on XP/2003.

An alternative to Robocopy is Xxcopy. There is a free 32-bit version and it has so many options you will not believe it.

share|improve this answer
Unfortunately I do not have admin rights over the computer and would be unable to install it, though based on the 300+ switches I'm guessing one would mimic the /lev:n option – mfg Nov 18 '10 at 16:14
@mfg: I have updated my answer to include Robocopy XP026, which does not need admin rights to install, as it is just a standalone .exe. Just drop it into any directory in your PATH, for easiest use. – paradroid Nov 18 '10 at 16:17
bang! your robocopy s:\bloo s:\blah /e /lev:3 did what I needed, and portable at that, thanks! – mfg Nov 18 '10 at 18:10

Not with xcopy, but take a look at robocopy:

It has the /LEV:n option.

share|improve this answer
Wow, now that is a list of options. Unfortunately I'm running this on an XP machine and robocopy is Win7... maybe in the future it will be backported – mfg Nov 18 '10 at 15:44
It is available for XP:… (don't be fooled by the title, look at supported OSes near the bottom). – Nov 18 '10 at 15:46
Good to know there's a module for it; unfortunately I would still need admin rights to install the module. – mfg Nov 18 '10 at 16:10
Yes, for the above definitively. Check here for a standalone versions: – Nov 18 '10 at 16:15
Thanks for the help, saved me purging a ton of stuff, or typing out a bajillion directories – mfg Nov 18 '10 at 18:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .