Page 1 of 1

Creating new folder

Posted: 30 Oct 2006 20:48
by John Bee
Umm... Anybody tried creating a new folder/directory with Ctrl-N or Menu Edit , New, Folder lately?

It turns on rename on the first entry in the listview, and if there isn't one, you just see an empty box with a flashing cursor in it! :shock:

John
Win2K
0052

Re: Creating new folder

Posted: 30 Oct 2006 21:19
by jacky
John Bee wrote:Umm... Anybody tried creating a new folder/directory with Ctrl-N or Menu Edit , New, Folder lately?
Yep, and it all works fine here :) Might be related to some setting somewhere... tried a few things, but it always work.

I noticed a little thing what might be "weird" though: "when resort after rename" in ON, and you create a new folder, it gets put in its place automaticaly. But, that is only if you "rename" it to smthg else than its default name, or else statys on the end of the list.
I understand perfectly why it does so, but it might look "weird" as one could expect that on validating the new folder's name, whether or not it kept its default name, the list would be resorted.

Re: Creating new folder

Posted: 30 Oct 2006 21:31
by John Bee
jacky wrote:Yep, and it all works fine here :) Might be related to some setting somewhere... tried a few things, but it always work.
I wish it was Jacky, but going back to 0041 and it works like it should. I re-installed 0052 again to see, but same as above. For *me* going back to 0041 clears this problem up.

John
Win2K
0041

Posted: 30 Oct 2006 22:37
by surrender
Also in 0053?? because it works fine for me here. Havent tested 0052 though.

Posted: 30 Oct 2006 23:07
by jacky
Well, I'm on 0053 like surrender, and I have no problem. Can't say for sure, but I've been creating folders with previous version so maybe not with 0052, but I have since 0041 and I never met this behavior.

I tried with/without auto refresh, resort after rename, exclude extension, show folder sizes, autosize columns, full row select, having the 1st item focused/selected, from Tree, it all works fine.

Do you have any other settings that "could do this"? Does this happen all the time in every folder you (try to) create a new one?
BTW, when you do this, a folder "New Folder" isn't even created, right?

EDIT: ok forget this, I can kinda reproduce this now: if I try to create a new folder/text file on a CD for example, then the focused item switch to rename mode.
What happen is XY cannot create the folder, but goes on with its procedure, and activate rename mode on the focused item (which should be the newly created folder if everything went ok).

So, there is a little bug there yes. But I have no idea why XY isn't able to create a folder on your computer? Maybe rights problem or something?

Posted: 31 Oct 2006 01:56
by John Bee
jacky wrote:Well, I'm on 0053 like surrender, and I have no problem. Can't say for sure, but I've been creating folders with previous version so maybe not with 0052, but I have since 0041 and I never met this behavior.
I have now tried 0053. Same thing. I am running Win 2K. My entire hard drive is all fat32 partitions.

All I can say is, with 0041 it works as is should. As soon as I install 0052/0053, it no longer works. !!??

John
Win2K
0041

Edit: I went and tried every version I had from 0041 up to see where this problem started and .... 0041, 0049, 0050, 0051 <--Bingo!!
It started with 0051.

Posted: 31 Oct 2006 02:18
by Creat
I can confirm it, I have the same problem. Doesn't matter if the shortcut is used or the (context)menu entry. Just goes to rename the currently selected file.

edit: forgot to mention, I updated from 5.00.something to the latest (5.20.0053)

Posted: 31 Oct 2006 12:17
by rod147
I'm on 0052 and ctrl-N is working as normal. With either tree or list focused, no problems here.

Posted: 31 Oct 2006 12:19
by admin
John Bee wrote:I have now tried 0053. Same thing. I am running Win 2K. My entire hard drive is all fat32 partitions.

All I can say is, with 0041 it works as is should. As soon as I install 0052/0053, it no longer works. !!??
Thanks for the info. While adding unicode support I tried out a new function for creating dirs but as it seems it does not work on FAT32.

Now a use a third function that should do it...

Posted: 31 Oct 2006 15:32
by John Bee
admin wrote:Thanks for the info. While adding unicode support I tried out a new function for creating dirs but as it seems it does not work on FAT32.

Now a use a third function that should do it...
No prob, Don. I like to squish bugs.

John
Win2K
0054
1,356ms

Edit: We have folder creation again! :D Thanks Don.

Posted: 31 Oct 2006 16:45
by jacky
admin wrote:Thanks for the info. While adding unicode support I tried out a new function for creating dirs but as it seems it does not work on FAT32.
Just a FYI, it's not (just?) FAT32 related. I was able to create folders without any problems using 0053 on both FAT32 and NTFS (XP SP2 Pro)

Posted: 01 Nov 2006 02:27
by Creat
to further narrow it down: not using any fat, so that can't be it. But I'm on WIN2K, and not XP like most of you (I assume). That might be at least part of the reason.

But it works again in the latest beta, so all is good :D

Posted: 01 Nov 2006 07:41
by admin
Creat wrote:to further narrow it down: not using any fat, so that can't be it. But I'm on WIN2K, and not XP like most of you (I assume). That might be at least part of the reason.

But it works again in the latest beta, so all is good :D
So maybe the function worked on XP only... documentation is a bit scarce here, and partly contradictive. If you want to find out yourself: SHCreateDirectory made the problems...

Posted: 01 Nov 2006 20:52
by Creat
Just in case you're interested:
Note This function is available through Microsoft Windows XP Service Pack 2 (SP2) and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows.

This function creates a file system folder whose fully-qualified path is given by pszPath. If one or more of the intermediate folders do not exist, it creates them.
[...]
Minimum operating systems: Windows 2000
well there you have it: "is available though Xp SP2", meaning it won't even work on Win XP with SP1 and below (though this isn't exactly stated too clearly or even contradicted by the OS-requirement below).
So there's no reason to not use it on XP SP2+ (it is quite handy, creating the whole path in one go), just don't use it in earlier Windows-versions since it seems to not work (whatever they mean by "minimum OS: Win2K", this isn't it apparently). It probably is also faster or more efficient and can handle unicode, I'd want it to do that too (had some problems with those damn unicode filenames in a program of my own, so I can relate ;) ).

bye
Creat

Edit: clarified something

Posted: 02 Nov 2006 08:22
by admin
Creat wrote:... It probably is also faster or more efficient and can handle unicode, I'd want it to do that too (had some problems with those damn unicode filenames in a program of my own, so I can relate ;) ).
Yes, but: "It might be altered or unavailable in subsequent versions of Windows." ... hmm :roll: .. I stick to CreateDirectoryW which works just fine with unicode names.