1

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)

2 Answers 2

1

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.

3
  • 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, 2010 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, 2010 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, 2010 at 18:10
3

Not with xcopy, but take a look at robocopy:

It has the /LEV:n option.

6
  • 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, 2010 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). Nov 18, 2010 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, 2010 at 16:10
  • Yes, for the above definitively. Check here for a standalone versions: pcreview.co.uk/forums/thread-3767351.php. Nov 18, 2010 at 16:15
  • Thanks for the help, saved me purging a ton of stuff, or typing out a bajillion directories
    – mfg
    Nov 18, 2010 at 18:12

You must log in to answer this question.

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