Problem with "New Location (13)"

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Problem with "New Location (13)"

Postby Jesseke » Wed Jan 06, 2010 7:58 pm

Hello, I'm new with BRU!

I have a directory-structure:
4PW12345
4PW13456
etc

Now, I want to rename this directory-structure by adding a suffix: _Archive.
Result:
4PW12345_Archive
...
With this: no problem at all!

But now I want also the original directory-structure names as COPY
Example:
4PW12345
4PW12345_archive
4PW13456
4PW13456_archive

When I check Add (7) to add the suffix "_archive" and I check "New location (13) with option copy not move enabled" then I get an error-messag in Windows XP SP2 and BRU stops working.

I also tried to replace the attributes (-r .... in the options menu), but result stays the same.
Who have any suggestions to solve this problem?
Jesseke
 
Posts: 4
Joined: Wed Jan 06, 2010 7:46 pm

Re: Problem with "New Location (13)"

Postby Stefan » Wed Jan 06, 2010 9:53 pm

Hi Jesseke welcome.

Copy of folders is not supported.
I think basically because Jim use an simple file copy from win api, (just my assumption)
but you can't just copy an folder that simple.... you have to create an folder first and then copy all files and sub-folders ... and this recursive.

something like:
md 4PW12345_Archive
xcopy /k/r/e/i/c/h 4PW12345\*.* 4PW12345_Archive\*.*


---------------------

My idea to get you what you want is this:

(untested, test in C:\temp first)


1.) copy the folders in WinExplorer:
FROM
4PW12345
4PW13456
Ctrl+C / Ctrl+V

TO
4PW12345
4PW13456
Copy of 4PW12345
Copy of 4PW13456


2.) and then use BRU to rename
FROM
Copy of 4PW12345
Copy of 4PW13456
TO
4PW12345_Archive
4PW13456_Archive


HTH?
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: Problem with "New Location (13)"

Postby Jesseke » Thu Jan 07, 2010 7:25 am

Hello Stefan,

Your suggestion sounds good, but... :)

English isn't my basic language (read: I speak dutch) :)

What I want is that the program rename the folders to xxxx_archive (with files in that folder) AND that the program also create an empty folder that is based on that file without the suffix _Archive

Example:
4PW12345_Archive (in this folder 10 files)
4PW12345 (the name of the folder is a copy of the folder above without the 10 files)(read: an empty folder)

My suggestion was:
first batch: I rename the folders with a suffix _archive
second batch: I remove the suffix (8 characters) and use the option (New location (13) with copy not move activated).

The first batch works fine, the second not. When I uncheck "New location (13)", then I works but not with the result I want :)


Other suggestions?
Jesseke
 
Posts: 4
Joined: Wed Jan 06, 2010 7:46 pm

Re: Problem with "New Location (13)"

Postby Jesseke » Thu Jan 07, 2010 12:46 pm

After hours experimenting I have the following conclusion: renaming and MOVING to another directory works! But the COPY function doesn't.
Other suggestions to do it automatically?
Jesseke
 
Posts: 4
Joined: Wed Jan 06, 2010 7:46 pm

Re: Problem with "New Location (13)"

Postby Stefan » Thu Jan 07, 2010 12:58 pm

Jesseke wrote:Hello Stefan,

Your suggestion sounds good, but... :)

English isn't my basic language (read: I speak dutch) :)

What I want is that the program rename the folders to xxxx_archive (with files in that folder) AND that the program also create an empty folder that is based on that file without the suffix _Archive

Example:
4PW12345_Archive (in this folder 10 files)
4PW12345 (the name of the folder is a copy of the folder above without the 10 files)(read: an empty folder)

My suggestion was:
first batch: I rename the folders with a suffix _archive
second batch: I remove the suffix (8 characters) and use the option (New location (13) with copy not move activated).

The first batch works fine, the second not. When I uncheck "New location (13)", then I works but not with the result I want :)


Other suggestions?


Ah, O.K. than 'Haartelijk welkom'

Since BRU do not copy folders on renaming, we could do an little work around...


FROM
4PW12345
TO
4PW12345_Archive with the files (renamed from 4PW12345)
4PW12345 empty without any file (new created)



1.)
* open the main folder in BRU
* select all folder
* right click and chose "Clipboard Copy > Pathname"
* paste this into an text editor and add in front of all line [md "] without the []'s, and at the end just an " sign.
So you get an list like
md "4PW12345"
md "4PW13456"

You can use e.g. NotePad2 for that work. Download at http://www.flos-freeware.ch/notepad2.html
Paste the names of the files, select all, press Alt+M, fill in prefix[ md " ] and append[ " ] text, press OK and you're done.

Save this file as make-new-dirs.cmd into the main folder.


2.)
use BRU to rename
FROM
4PW12345
4PW13456
TO
4PW12345_Archive
4PW13456_Archive


3.)
execute the make-new-dirs.cmd batch, created above, from the main folder.
This will create new folders with the old name.
Now you have "4PW12345" renamed to "4PW12345_Archive" and also "4PW12345" new created.
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: Problem with "New Location (13)"

Postby Jesseke » Thu Jan 07, 2010 1:40 pm

That's it Stefan!!! :D
I hope that in future the problem with the COPY will be solved because BRU is a great program!

Many many many thanks
Jesseke
 
Posts: 4
Joined: Wed Jan 06, 2010 7:46 pm


Return to BRU Support