![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread
Number : 2596 Date : 2002-08-03 Author : Michael Marquart Subject : Re: Help please!! Size(KB) : 1
I gave some untested advice on a similar topic which turned out poorly, so this solution creates a !.bat file for you to examine and run only when you are satified that it is correct. Test on dummy files first. dir /a:d /s /b /-p|sed -n '/images/Is/\(.*\)images\(.*\)/ move "\1images\2\\*.*" "\1\"/Ip'>!.bat That is one single line which you can copy and paste into a temporary batch file, and run in your MAIN subdirectory. It uses GnuSED V3.02.80 from http://www.student.northpark.edu/pemente/sed/ http://www.student.northpark.edu/pemente/sed/sed3028a.zip rename to sed.exe It does not remove the images folder, but you can do that with this line dir /a:d /s /b /-p|sed -n '/images/Is/\(.*\)images\(.*\)/ rd "\1images\2"/Ip'>!.bat in a similar fashion. As before, test on dummy folders first. A WARNING: these commands will process any path with "images" in it so if your MAIN or "Directory 1" or "Directory 2" etc contains the text "images" then edit the final batch file as necessary. On Sat, 03 Aug 2002 15:21:12 -0000, "smhilluk" wrote: >I have just downloaded XXCOPY and installed, but am finding it hard to come to terms with all the options. I need to do an operation now, as its bugging me. Could someone help me please, then I will study the help files for future use. > >Basically my structure is: > >Directory 1/Images/ >Directory 2/Images/ >.. > >and I want to get > >Directory 1/ >Directory 2/ >.. > >basically eliminating the subdirectory /Images/ which every directory has, but maintaining everything else. > >I think this has something to do with the /SG (?) command but don't want to mess things up, and like I said I am keen to do this sooner rather than later. > >Thanks. > > > > > > >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > >
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.