cmd=SELECTFILESB

English support forum

Moderators: petermad, Stefan2, Hacker

Post Reply
igarny
Junior Member
Junior Member
Posts: 75
Joined: 2023-01-26, 19:01 UTC

cmd=SELECTFILESB

Post by *igarny »

Hello

I have an unexpected behaviour of an internal command, which I suppose can qualify as a BUG
This fails with latest 11.57, but also 11.51

I created an extended command:

[em_mycmd1]
cmd=SELECTFILESB
param="myfile.docx"

[em_mycmd2]
cmd=SELECTFILESB
param="my file.docx"


the result is that SELECTFILESB can find the file wich lack space in the name and cannot find the other file with space in the filename
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3978
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: cmd=SELECTFILESB

Post by *sqa_wizard »

This behaviour is related to the fact, that windows always removes the outer doublequotes first.

use doublequotes twice instead:
param=""my file.docx""
#5767 Personal license
User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: cmd=SELECTFILESB

Post by *white »

ghisler(Author) wrote: 2024-03-29, 14:16 UTC When reading from ini files, Windows removes any surrounding double quotes, e.g.
Editor="%COMMANDER_PATH%\AkelPad.exe" "%1"
-> %COMMANDER_PATH%\AkelPad.exe" "%1

Editor=""%COMMANDER_PATH%\AkelPad.exe" "%1""
-> "%COMMANDER_PATH%\AkelPad.exe" "%1"

Moderator message from: white » 2026-05-29, 14:33 UTC

Moved topic
» from TC11.x bug reports (English) to Total Commander (English)
Post Reply