Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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
1  
It is available for XP: microsoft.com/downloads/en/… (don't be fooled by the title, look at supported OSes near the bottom). –  icyrock.com 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: pcreview.co.uk/forums/thread-3767351.php. –  icyrock.com 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

Your Answer

 
discard

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.