Creating new folder

Things you’d like to miss in the future...
Post Reply
John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Win10, Win11 @100%

Creating new folder

Post 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

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Creating new folder

Post 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.
Proud XYplorer Fanatic

John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Win10, Win11 @100%

Re: Creating new folder

Post 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

surrender
Posts: 623
Joined: 23 Oct 2005 08:53
Location: Berlin, Germany

Post by surrender »

Also in 0053?? because it works fine for me here. Havent tested 0052 though.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post 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?
Proud XYplorer Fanatic

John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Win10, Win11 @100%

Post 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.

Creat
Posts: 234
Joined: 22 Sep 2005 18:27

Post 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)

rod147
Posts: 46
Joined: 18 Apr 2005 15:44

Post by rod147 »

I'm on 0052 and ctrl-N is working as normal. With either tree or list focused, no problems here.

admin
Site Admin
Posts: 64280
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post 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...

John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Win10, Win11 @100%

Post 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.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post 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)
Proud XYplorer Fanatic

Creat
Posts: 234
Joined: 22 Sep 2005 18:27

Post 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

admin
Site Admin
Posts: 64280
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post 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...

Creat
Posts: 234
Joined: 22 Sep 2005 18:27

Post 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

admin
Site Admin
Posts: 64280
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post 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.

Post Reply