Rename-files - Right click a folder to rename files

Miscellaneous tools
Post Reply
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Rename-files - Right click a folder to rename files

#1 Post by don570 »

Just right click on a folder and various options are given.

German and Spanish version now available

(See the picture)

For example it can create a folder and put all your txt files in that folder.

...or rename .html files to .htm

Note that these are non recursive actions --> that means it
won't dig down in the folder. This has both benefits and drawbacks.

It kept the coding a lot simpler fo me. :wink:

Note: the extension field must not begin with a dot
For instance .jpg ---> just enter jpg
or .tar.gz --> just enter tar.gz

Also extensions mustn't have whitespace!!!
You are given various warnings to make the program idiot-proof.

I have built this into my right click option package --> found HERE

Image
Attachments
rename-files-NLS-1.7.pet
foreign translation locals -German and Spanish
(3.18 KiB) Downloaded 830 times
rename-files-1.9.pet
right click a folder to rename files inside
(7.85 KiB) Downloaded 957 times
Last edited by don570 on Thu 02 Oct 2014, 17:52, edited 8 times in total.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

ROX already does a fine job of batch renaming (just highlight the files you want to rename, right-click them and choose Rename.) Is this supposed to be better?

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#3 Post by don570 »

Flash wrote:ROX already does a fine job of batch renaming
I wanted a good variety of types of renaming,
also I want it to be fool-proof. No accidental over writing of files
that are named the same. I'm working on that now. :wink:

So far I've finished suffix renaming and numbering.

I'm using 'mv -n' to make sure that there will be no overwriting
by the new file.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

New version 1.4 rename-files

#4 Post by don570 »

New version 1.4

-bug fixed -- now numbering of files works as desired

file_000 is the oldest in folder

If there is a similar named file already in folder then a skipping
of the renaming occurs. There is a summary window at end of process
so that the user knows what is happening.

- also 'suffix' renaming now won't over-write an existing file.

I will continue to work on this app in the next couple of days
so that it's dependable.

_________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

New version 1.5

#5 Post by don570 »

New version 1.5


I am continuing to work on this.

The warning messages need improvement!!!
But at least there is now no over-writing of existing files.

German translation is now available, thanks to RSH.

_______________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#6 Post by don570 »

version 1.6 now available

I fixed a couple of bugs.

For instance I didn't realize that mv command
could move a file into a folder. :oops:

I think no serious bugs remain, but I will continue to test
and change the summary window design to make
it more instructive.

Spanish and German translations are now available.
Just install the local pet as well.


_________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

version 1.7

#7 Post by don570 »

version 1.7

I corrected a nasty error. I didn't realize
that the command mv -n
doesn't work on Puppy Linux (other than Lucid Puppy)

I was able to change the command to

mv -i

I am now quite happy with the results :lol:

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

rename-files 1.7 doesn't overwrite

#8 Post by don570 »

Just a note to users

rename-files 1.7 doesn't overwrite any files when it renames
or does a function, so it's completely safe to use :lol:

....and you should get a warning message if it detects
a similar named file(or folder)!!!


___________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Rename-files-version 1.2

#9 Post by don570 »

New Feature in version 1.2

It is now possible to use rename-files with filenames such as

file-1.2
file-1.2.txt

This would previously confuse Rename-files into thinking that
.2 was part of an extension ... but now it will treat the number
like it is part of file name.

In other words (if numbering option is done)
file-1.2 will be renumbered file-1.2_000 rather than
file-1_000.2

______________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#10 Post by don570 »

A useful feature of rename-files that people don't appear to
understand is

Move files with EXTENSION to their own folder

I'll explain in English why this is useful...

Let's say you have a folder with many different file formats inside,
but you want your mp3's to be alone in one folder.

Just fill in 'mp3' in field and the application does the work of
moving. There will be a folder created with the mp3 files inside.

Once this is done you can then number your mp3 files
with another feature of rename-files

Number files in folder from 000 to 999 according to date

This will put a number at the tail end of the filename.
The number will help the user to spot the files are older.

_________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#11 Post by don570 »

version 1.9

New version allows right click of a mount point such as
/mnt/sdb1 and right click works.

This allows all the files with a particular extension to be moved safely
to a separate folder.
This helps to tidy up a USB stick for example.

However note that jpeg images may have .jpg or .jpeg or .JPG extension
so the right click might have to done for each extension.
__________________________________________________

Post Reply