Auto-replace characters when creating new folders

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Perplexer
Junior Member
Junior Member
Posts: 55
Joined: 2007-09-22, 10:55 UTC

Auto-replace characters when creating new folders

Post by *Perplexer »

I often create folders by copying the product names from a TXT file, for example "DC290/12" and if I paste that as a folder name, it will create a main folder called "DC290" and a subfolder inside called "12". I've gotten used to manually replaceing / with - so I ended up with "DC290-12" but it has always bothered me having to use my keyboard for that every time. Is there a way to "teach" Total Commander to automatically replace "illegal" characters with "legal" ones when creating folders? For example turn / into - or a single double-quote " into two single quotes '' or ? into nothing ?
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Auto-replace characters when creating new folders

Post by *Stefan2 »

Perplexer wrote: 2020-01-13, 00:59 UTC Is there a way to "teach" Total Commander to automatically replace "illegal" characters with "legal" ones when creating folders?
No.

Me think you should utilize a scripting language of your OS, as the possibilities for such an feature are too much.
Or use an good text editor to manipulate your TXT file before.


And BTW, for better readability of your post, here are some linebreaks for you:







HTH?
User avatar
petermad
Power Member
Power Member
Posts: 16118
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Auto-replace characters when creating new folders

Post by *petermad »

here are some linebreaks for you
:lol:
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Auto-replace characters when creating new folders

Post by *Hacker »

Perplexer,
Could be easily done using AutoHotkey or such.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply