Problem with FixNames plugin

Apr 2, 2011
1,439
10
54
North Carolina, USA
I have the following files:

==== begin paste
1C_Mihiro_043(1).zip
8=5Fm01=5FKortnie=5FO=92Connor=5F01.zip
=5FN=F6el=5FSimone=5F=28Marylan==Windows-1252Qd=29.zip
=Windows-1252Q200806=5FJuliette=5FFrett=E9=5F19.zip
=Windows-1252Q200806=5FJuliette=5FFrett=E9=5F25.zip
=windows-1252QAnnette_D=92Zam_=2818=29=2Ejpg=.zip
=Windows-1252Qcc=5FAnnette=5FD=92Zam=5F16xl.zip
=Windows-1252Qcc=5FAubrey=5FO=92Day=5F08xl.zip
=Windows-1252QNy=E1ri=5Fk=E9pek=5F1301=5F03.zip
=Windows-1252QNy=E1ri=5Fk=E9pek=5F1301=5F36.zip
=Windows-1252QNy=E1ri=5Fk=E9pek=5F1301=5F40.zip
=Windows-1252QPM200605=5FSabrina=5FPrei=DFer=5F30.zip
=Windows-1252Qugwp=5Fkatrin-h=E4nelt=5F01.zip
Bootylicious_&_Luscious_61.zip
com2Favatar2Fad516503a11cd5ca435acc9bb65235363Fs3D32&r=G.zip
Doutzen&Adriana04.zip
G-Granny&Friend.zip
GarcelleBeauvais(6).zip
MagdalenaSierka(5).zip
NatasaDilber(16).zip
ngary=5F09xl=5FVikt=F3ria=5FMetzk==Windows-1252Qer.zip
QFran=E7ois-Beneveniste=5F=28France=29=5F01214030=5F1.zip
ren=5FD=92Marie=5FPictorial==Windows-1252Q1=5F21xl.zip
SabrinaMarie(0).zip
theforbiddenfruitnicki'swordart'09.zip
theforbiddenfruitnicki'swordart'09_theforbiddenfruitnicki'swordart'09.ZIP
ws-1252Qcc=5FDian=92sBack!=5F13xl=5FDian=5FParkinson.zip
==== end paste

When I do fixnames /s *.* it doesn't fix any of these. What can I do please to fix &, ( and ), to _'s and =?? to their correct ascii charachters please?
 
Aug 2, 2011
258
4
Berlin, Germany
Hi,

just for interest - where do you get such horrible filenames from?

Frank
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,460
88
Albuquerque, NM
prospero.unm.edu
When I do fixnames /s *.* it doesn't fix any of these. What can I do please to fix &, ( and ), to _'s and =?? to their correct ascii charachters please?

It's not intended to; you can manipulate all of those characters easily in TCC. FixNames just replaces characters which you can't handle easily: percent signs, grave accents, carets....

I could add an option to decode =XX easily enough, but it would have to be an option and default to off. Sometimes a cigar is only a cigar....
 
Apr 2, 2011
1,439
10
54
North Carolina, USA
Charles adding that option to decode the =?? would be a significant help. Thank you very much.....
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,460
88
Albuquerque, NM
prospero.unm.edu
Okay, I've put up a new build here: FixNames plugin

This one decodes =XX pairs when you specify /E. I've also added Windows-1252 support; if the decoded character is in the range 0x80 to 0x9f, you'll get a printable character instead of a C1 control char.
 
Apr 2, 2011
1,439
10
54
North Carolina, USA
Charles,

prompt> fixnames /E /N /s *.*

would adding to the Grand Total line something like:

"n files in x folders would be renamed."

then a similar line in each folder be possible please?
 
Aug 8, 2010
30
0
Would it be too much trouble to have a switch to override "When a filename contains a percent sign followed by two hexadecimal digits, the trio is treated as an encoded character"? It would introduce an either/or condition for when you want %20 to become a space too, but sometimes brute force is a good thing.

I got your homage to Herr Freud. Nice.
 
Aug 8, 2010
30
0
Sorry for the confusion. My interest is in a switch to not expand any %xx at all - perhaps treat the percent sign the same way as when it's followed by spaces.

From
PS and two spaces [% ].txt
To
PS and two spaces [_ ].txt

The "%20, either/or" connection in my last entry is that if FIXNAMES does "not expand any %xx at all" and there are legitimate %xx combinations (0x80 to 0x9f) and "rogue" combinations (>0x9F), it won't be possible to BOTH convert the legitimate ones AND just change the percent sign for the rogue ones. However, for the sake of the intention of the plugin, that would be preferred over creating characters like õ as happened once to me. More refinement than that would be nice, but not necessary.
 
Similar threads
Thread starter Title Forum Replies Date
C FIXNAMES problem Plugins 9
C FixNames problem? Plugins 22
jfalch Problem with 4utils64 in v21 Plugins 5
M Annoying "Event64" Problem... Plugins 15
M (Stupid?) Problem with 64-bit 4Utils plugin... Plugins 3
S How to? 4autotray problem Plugins 6
Frank Problem with MkVer Plugins 7
M A problem with the SafeChars Plugin... Plugins 30
Timothy Byrd Problem with DELAY in RB_Utils in v9 Plugins 1
C FIXNames Plugins 29
C C. Dye's fixnames Plugins 4
Joe Caverly 64-bit Plugin development using PureBasic Plugins 15
R New Plugin Plugins 0
Alpengreis elevated plugin questions Plugins 3
fpefpe utf-8 support in sdk/plugin api Plugins 4
S How to? Can @DU function in 4Utils64 plugin somehow cater for dirs with spaces? Plugins 3
vefatica Plugin access to arrays? Plugins 4
vefatica How big is a plugin's parameter buffer? Plugins 5
C @knownpath plugin Plugins 0
Charles Dye Updated OSD plugin Plugins 0
Joe Caverly C# plugin framework for JPSoft's TCC Plugins 0
dcantor Help for newest version of TEXTUTILS plugin Plugins 10
dcantor UISTUFF plugin missing help topic Plugins 12
M How to? Use SafeChars plugin... Plugins 2
dcantor Error in SAFECHARS plugin v 1.9.0 Plugins 2
dcantor Request for documentation for ISO8601 plugin Plugins 4
vefatica Possible with a plugin? Plugins 6
dcantor Inconsistency between textutils plugin and wrap utility Plugins 2
H Latest ISO8601 plugin? Plugins 1
Charles Dye New plugin: QKeys Plugins 34
S Plugin to quickly locate all files hard linked together Plugins 5
S Documentation Plugin everything.dll Plugins 5
newbie How to? Multi-plugin installation errors, Re: FedUtils8 Plugins 7
vefatica Plugin -> thread -> Command() -> Ctrl-C? Plugins 20
Charles Dye A weirdoid plugin question Plugins 6
M SafeChars plugin misbehaving... Plugins 3
M A weird error re a plugin... Plugins 0
vefatica Plugin dilemma Plugins 2
fpefpe Documentation Plugin API/SDK Plugins 3
C Looking for Vince's old 4UTILS plugin for TCMD v8 Plugins 1
S DESKTOP plugin - anyone ? Plugins 0
C How to? a plugin to sort Outlook Express "rules" Plugins 0
M ISO Plugin: Yes, it's wonderful, but it could be yet more wonderful... Plugins 7
M The ISO plugin is wonderful, but it lacks a little something... Plugins 22
Charles Dye Beta plugin: HidePasswords Plugins 3
M ISO8601 Plugin not "reporting" errors to TCC... Plugins 4
Frank 4console plugin Plugins 4
S WAD ISO8601 Plugin Plugins 15
Joe Caverly Plugin and 64-bit TCC Plugins 3
dcantor Suggestion and request for DBF plugin Plugins 6

Similar threads