Dir creation
Moderators: white, Hacker, petermad, Stefan2
Dir creation
TC 6.54pb2
I've just tried to create a dir with a leading '\' and it was created in the root of the current drive but not in the current dir. I think all dirs that don't contain drive in the path should be created in the current dir.
Thanks.
I've just tried to create a dir with a leading '\' and it was created in the root of the current drive but not in the current dir. I think all dirs that don't contain drive in the path should be created in the current dir.
Thanks.
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Indeed this is intentional. Try also there variations:
..\somedir created in the parent directory
somedir1\somedir2\somedir3 all 3 dirs created below each other
c:\somedir dir created in root of c:
somedir1|somedir2|somedir3 all 3 dirs created in current dir
..\somedir created in the parent directory
somedir1\somedir2\somedir3 all 3 dirs created below each other
c:\somedir dir created in root of c:
somedir1|somedir2|somedir3 all 3 dirs created in current dir
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Well, I'm totally ashamed.Sheepdog wrote:If you open a dosbox and type the command md \anydir this dir will also be created in the root of drive.
But i have some more words to say.
1. try to create dir 22\\
TC will show error message that dir 22\\ was not created, but it will create dir 22 instead after closing message box.
2. imagine the situation. you want to create dir1|dir2|dir3|...|dirN,
but TC is unable to create several dirs. So you have to close each error message (and while such a message stays open TC will not create other dirs). Maybe it would be better for TC to try to create all dirs and then show one error message with the list of non-created dirs?
___
Little OT.
I write an ahk-script which can automatically create a file in the newely created dir in TC (as i often need it) and the current behaviour complicates my task.
I realize that Mr. Ghisler can't implement every user wish, but i think some things could be improved a little bit to make TC more script-oriented and user-extendable.
Thanks.
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This is normal - you requested to create dir "22" and subdir "", and the second one of course failed.TC will show error message that dir 22\\ was not created, but it will create dir 22 instead after closing message box.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact: