Page 1 of 2
Spaces in the command line shouldn't open explorer
Posted: 2008-11-29, 11:07 UTC
by mauzer_tim
If I mistakenly add a space to the command line (I don't know how it is happened:)), the, when I try to enter to a directory by pressing Enter, Windows explorer opens. I think Total Commander should ignore command line containing only spaces, because spaces are invisible symbols and you do not know what action invokes your following pressing of Enter key. At least there should be an option to ignore spaces.
Posted: 2008-11-29, 19:23 UTC
by sqa_wizard
Welcome to the forum mauzer_tim !
The command line is (as the name already says) a line where you can enter a command !
Typing notepad.exe test.txt has to execute exactly this command (open notepad with file test.txt).
It should not open a file "notepad.exe test.txt" and should not enter a directory with the name "notepad.exe test.txt".
According to the conventions you have to:
- set doublequotes around commands with spaces
- use CD in front of a directory name to enter this directory
Why should TC break this conventions ?
Posted: 2008-12-02, 10:29 UTC
by mauzer_tim
sga_wizard, thanks for your reply!
You're absolutely right, but... you reply doesn't concern my wish. I just suggest to ignore to execute a command line which is consists only from spaces which I mistakenly entered there. By "command line" I mean TotalCommander field which is located at the bottom of the main window.
Posted: 2008-12-03, 14:38 UTC
by sqa_wizard
Sorry for the misunderstanding
In this case I support your suggestion !
Posted: 2008-12-03, 20:46 UTC
by HolgerK
mauzer_tim wrote:.. I just suggest to ignore to execute a command line which is consists only from spaces which I mistakenly entered there.
Isn't this a feature to open quickly Exploder with the current path?
<
Space><
Enter> (or <Right><Space><Enter>)
Kind regards,
Holger
Posted: 2008-12-04, 00:06 UTC
by sqa_wizard
Why should anybody open an Explorer if he has a TC

Posted: 2009-01-08, 22:49 UTC
by MVV
HolgerK wrote:Isn't this a feature to open quickly Exploder with the current path?
<
Space><
Enter> (or <Right><Space><Enter>)
For opening Explorer you can always execute a command which contains only one dot - the dot in Windows treats as current folder.
Re: Spaces in the command line shouldn't open explorer
Posted: 2009-01-20, 06:56 UTC
by versalzen
mauzer_tim wrote:If I mistakenly add a space to the command line (I don't know how it is happened:)), the, when I try to enter to a directory by pressing Enter, Windows explorer opens. I think Total Commander should ignore command line containing only spaces, because spaces are invisible symbols and you do not know what action invokes your following pressing of Enter key. At least there should be an option to ignore spaces.
you may be interested in a shortish solution for this behaviour/feature.
its discussed in the
german forum too, and we got a short and effective workaround :-)
put, or add
in the wincmd.ini
which will force tc to press ENTER, even if there is only a space in the commandline.
Re: Spaces in the command line shouldn't open explorer
Posted: 2009-01-28, 16:31 UTC
by mauzer_tim
versalzen wrote:mauzer_tim wrote:If I mistakenly add a space to the command line (I don't know how it is happened:)), the, when I try to enter to a directory by pressing Enter, Windows explorer opens. I think Total Commander should ignore command line containing only spaces, because spaces are invisible symbols and you do not know what action invokes your following pressing of Enter key. At least there should be an option to ignore spaces.
you may be interested in a shortish solution for this behaviour/feature.
its discussed in the
german forum too, and we got a short and effective workaround
put, or add
in the wincmd.ini
which will force tc to press ENTER, even if there is only a space in the commandline.
mario, thank you! I do not understand why, but this solution works well for me!
Anyway I think that TotalCommander's team should make this behavior by default (do not run explorer if there is only spaces in cmd line). Because otherwise this is a very annoying!
Posted: 2009-01-28, 16:34 UTC
by mauzer_tim
sqa_wizard wrote:Why should anybody open an Explorer if he has a TC

Because some tasks can be accomplished more simplier in Explorer than in TC. E.g. if you need to select a picture from many others it's effectively to do in Explorer because it displays them as thumbnails and do it very quickly, moreover Explorer allows to change thumbnail sizes and display them in full screen window.
Posted: 2009-01-28, 16:37 UTC
by mauzer_tim
And again, "displaying explorer on pressing enter when cmdline contains spaces" - is a non obvious (because I cannot see spaces and I do not know that something will start when I press enter) and not convenient behaviour. IMHO this should be fixed in the closest version

Posted: 2009-01-28, 17:47 UTC
by sqa_wizard
Explorer allows to change thumbnail sizes
TC: Configuration - Options - Thumbnails : Thumbnail size
... and all additional info you need with "Show custom fields" option !
display them in full screen window
TC: just press Ctrl-Q
Posted: 2013-12-13, 05:30 UTC
by ado
I'd like to bring back to attention this a very old thread. Is there any solution for this? It is happening to me quite often that standalone space in cmd line is opening Explorer instead of navigating to a subdir when pressing Enter...
...WinKey-R that will open "windows run dialog" will not even enable "Ok" button when in cmd line are only spaces
thank you
ado
Posted: 2013-12-13, 05:44 UTC
by MVV
ado,
Sometimes I press Enter and TC executes commands consisting of characters that I typed to command line by mistake, but it is not TC fault because it is me who typed these characters.
How can TC know that I don't really want to execute this command?
Posted: 2013-12-14, 23:59 UTC
by ado
MVV,
yes, agree... the problem is that if there is the space character you cannot see it. I do not complain about case when there are some visible characters. In such case you get just "File not found" from TC. I am perfectly fine with it (enter or space key and that dialog is gone). New explorer process is whole new process that takes time to start and Alt-F4 is not that convenient as enter.
Since there is not that many people comment on this this, I'd say it is not happening that often. But still I'd love if it can be maybe just "turn on/off" feature in wincmd.ini. Or I'd be fine also with that "File not found" on space in cmd line
