Sorting Tip

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Beverly Howard

Sorting Tip

Post by Beverly Howard »

Just discovered a new potential that may be of value to others.

Have been struggling with a task that involves renaming directories full of generated long filenames to 8.3 names.

Have been outputing;

DIR *.jpg /o:n/-p > temp.bat

to simplify the manual process, then editing the file with textpad and the following two processes have helped greatly... both rely on "Block Select Mode"

"Block Select" the first <character> in the filename (which is common) then, while selected replace all of that character with;

Rename <character>

(don't have to deal with the hidden eol issues)

"Block Select" any column of the directory, then Tools/Sort

In this case, it's a godsend as the directory sort fails because the file generating program doesn't pad numbers... i.e.

file 1
file 10
file 2

Hope this helps,
Beverly Howard
Post Reply