Bug with filenames with the % character
Moderators: Hacker, petermad, Stefan2, white
Bug with filenames with the % character
Hi!
I've found TC 6.01 doesn't know how to deal with files with the % character in them, stopping the user from moving, copying or renaming the file.
Same examples of filenames: slb%252003.txt, oke%20doke, etc.
B Z
I've found TC 6.01 doesn't know how to deal with files with the % character in them, stopping the user from moving, copying or renaming the file.
Same examples of filenames: slb%252003.txt, oke%20doke, etc.
B Z
No problem in Win98Se Danish


License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Bug with filenames with the % character
Ops... forgot to tell: the problem appears only when in command line. For instance, typing "move oke%20doke .." doesn't work but F6 will.
(I'm using XP Home SP1)
B Z
(I'm using XP Home SP1)
B Z
I tried it out (under Win98SE):
The commands DEL, COPY, REN and MOVE all worked from the command line with filenames like your examples (slb%252003.txt).
But
Sometimes the panels are not updated when using DEL, COPY and REN - you have to press F2 or Ctrl-R to make TC update the panels.
That only happens when when the setting of the screen is set to "window" (in contrary to "full screen") in the file COMMAND.PIF. I can't find any pattern for whether or not TC choses to update the file panels after using REN, DEL or COPY.
Using MOVE is different, because MOVE is not an internal command (internal to command.com or cmd.com) - MOVE is an executable program (MOVE.EXE).
I don't have any panel updating problems in TC using MOVE - and it doesn't matter whether I use "full screen" or "window" in the settings in MOVE.PIF
The commands DEL, COPY, REN and MOVE all worked from the command line with filenames like your examples (slb%252003.txt).
But

That only happens when when the setting of the screen is set to "window" (in contrary to "full screen") in the file COMMAND.PIF. I can't find any pattern for whether or not TC choses to update the file panels after using REN, DEL or COPY.
Using MOVE is different, because MOVE is not an internal command (internal to command.com or cmd.com) - MOVE is an executable program (MOVE.EXE).
I don't have any panel updating problems in TC using MOVE - and it doesn't matter whether I use "full screen" or "window" in the settings in MOVE.PIF
Last edited by petermad on 2003-12-31, 16:06 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC uses environment variable substitution on the command line. % may be interpreted by Windows as the start of an environment variable.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
In that case, wouldn't it help if he puts the filename between quotes? Like this: copy "slb%252003.txt" <target>ghisler(Author) wrote:TC uses environment variable substitution on the command line. % may be interpreted by Windows as the start of an environment variable.
#5050 :: Everyone who believes in telekinesis, raise my hand!
No, it would not help. Windows substitutes environment variables also in quotes. This can be verified easily by the following commands:CopyCats wrote:In that case, wouldn't it help if he puts the filename between quotes? Like this: copy "slb%252003.txt" <target>ghisler(Author) wrote:TC uses environment variable substitution on the command line. % may be interpreted by Windows as the start of an environment variable.
Code: Select all
pushd "%ProgramFiles%"
popd
pushd %ProgramFiles%
popd