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.