Wrong message when creating directory

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2ghisler(Author)
Why not use this way:
Flint wrote:Why not just check if the name entered by the user contains '?' or '*' and in this specific case show another error message? (For example, the same "Directory [...] could not be created!", so that there was no need to add new translations.)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I will consider this.
Author of Total Commander
https://www.ghisler.com
User avatar
Tahattmeruh
Senior Member
Senior Member
Posts: 232
Joined: 2003-05-16, 13:35 UTC

Post by *Tahattmeruh »

You could enumerate through all forbidden characters and check if any of them are in the name.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

For most chars fixed except this:
F7 dialog: "|" - no any messages are shown.
Command line: md " - message "File not found".
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

DrShark wrote:F7 dialog: "|" - no any messages are shown.
NOT CONFIRMED - I GET 2 Times Folder exists please specify another name.
DrShark wrote:Command line: md " - message "File not found".
Yes as there is no md.exe therefore message Command not found is correct :!:
What you want is "Command line: cmd md ""
or on 9xOS "Command line: command md ""
Hoecker sie sind raus!
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2Sir_SiLvA
DrShark wrote:
F7 dialog: "|" - no any messages are shown.
NOT CONFIRMED - I GET 2 Times Folder exists please specify another name.
I also had this behavior on 7.0. Now, on 7.01, I haven't any messages.
What version do you use?

About md.
What is
command md ""
You cannot execute command in command.com or cmd.exe without using /c or /k switch.
In my post I mean to type md " in command line of Total Commander.
Please try:
md "
md ""
md """
Only in third case you'll have correct error message.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

F7 dialog: "|" - no any messages are shown.
This has indeed been changed: | is used to create multiple directories in the same base directory. Example
a|b|c
creates the three directories "a", "b" and "c". So "|" alone means to create two directories with no name. TC now ignores the request to create a directory without a name.
||a
will therefore create just directory "a".
Author of Total Commander
https://www.ghisler.com
User avatar
Motorocker
Member
Member
Posts: 105
Joined: 2006-07-19, 10:52 UTC
Location: Perm, Russia
Contact:

Post by *Motorocker »

of the new version...
of the new version 7.5?
Graphics Converter – images conversion
KillOK – Cease to press OK!
NSCopy – copy unreadable
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes.
Author of Total Commander
https://www.ghisler.com
User avatar
Motorocker
Member
Member
Posts: 105
Joined: 2006-07-19, 10:52 UTC
Location: Perm, Russia
Contact:

Post by *Motorocker »

OK.
And can you combine this windows: error message + create dir dialog?

As now:
After trying create dir Total show "error" message:
http://motorocker.nm.ru/total/create_dir01.png
User must press Enter and F7 again:
http://motorocker.nm.ru/total/create_dir02.png

As good:
After trying create dir Total show this message with create dir dialog:
http://motorocker.nm.ru/total/create_dir03.png
User don't press Enter don't press again F7.
Graphics Converter – images conversion
KillOK – Cease to press OK!
NSCopy – copy unreadable
User avatar
Motorocker
Member
Member
Posts: 105
Joined: 2006-07-19, 10:52 UTC
Location: Perm, Russia
Contact:

Post by *Motorocker »

can moderators move this topic to suggestions?
Graphics Converter – images conversion
KillOK – Cease to press OK!
NSCopy – copy unreadable
User avatar
Hacker
Moderator
Moderator
Posts: 13073
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Motorocker,
can moderators move this topic to suggestions?
Please create a new topic in the TC 7 Suggestions forum. It is hard to tell which part of this thread is a new Suggestion and which is part is the Will not be changed. You can of course link to this thread, if you like.

Hacker (Moderator)
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