[solved, thanks!] using %L with special characters in DOS

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
chrizoo
Senior Member
Senior Member
Posts: 351
Joined: 2008-03-12, 02:42 UTC

[solved, thanks!] using %L with special characters in DOS

Post by *chrizoo »

I'm at my wits' end .... maybe you can help me ?

I have a button in my TC button bar which passes paths+names of the currently selected files (via %L) on to a batch file for further processing.
%L (as described in the TC help) creates a temporary text file storing the filenames.

Unfortunately there is a charset conflict I am not able to resolve:

I have (for example) a file, which - in both the DOS console and TC's files panel - is written as: "d:\De l'Autre Côté de la Rue (113).mp3". If I go to the temp dir and open the temporary text file (CMD345.tmp) created by %L with TC's Lister in ANSI mode, the file is also written as above.

However in ASCII mode, Lister displays: "d:\De l'Autre C⌠tƟ de la Rue (113).mp3". Unfortunately that's also the way, the batch file reads CMD345.tmp and displays the filename (with echo). Needless to say that when trying to process the mp3 file, the batch file cannot find it.

What do I have to do ?
I would be incredibly thankful for your help!
Last edited by chrizoo on 2010-05-01, 19:34 UTC, edited 3 times in total.
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

%l instead of %L?
or maybe add chcp 1252 to the batch file?

HTH,
Holger
User avatar
chrizoo
Senior Member
Senior Member
Posts: 351
Joined: 2008-03-12, 02:42 UTC

Post by *chrizoo »

wow! I feared that this was a DOS limitation without workaround... and now I even have 2 solutions.

Both worked perfectly! Thanks so much, Holger!
Post Reply