I am using a custom column to count the amount of files in a directory:
The problem is that when I click on a drive or large directory the user interface hangs for 5 to 10 seconds or so. It appears that the custom column is calculated (takes 5 or 10 secs) and only after that the files and folders are shown. After that, the size of the directories is calculated, but I can work with the user interface while it's doing this.
In the screenshot you can see that the list is updated in the order 1, then 2, then 3.
But, I would like to see it in the order 2, then 3, then 1.
So, first the standard columns (after which you can use the user interface again), second the standard calculated columns, third the custom columns.
How to calculate custom column after default columns
-
Sander Bouwhuis
- Posts: 249
- Joined: 10 Jun 2008 15:40
- Location: Netherlands
How to calculate custom column after default columns
To see the attached files, you need to log into the forum.
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.
-
admin
- Site Admin
- Posts: 66360
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: How to calculate custom column after default columns
You might achieve this by setting Trigger to "List".
Also note that there is a command FolderSize() which is a bit more efficient than Report().
Also note that there is a command FolderSize() which is a bit more efficient than Report().
FAQ | XY News RSS | XY X
-
Sander Bouwhuis
- Posts: 249
- Joined: 10 Jun 2008 15:40
- Location: Netherlands
Re: How to calculate custom column after default columns
FolderSize() doesn't seem to work. If you take a look at the screenshot then you can see that some directories are missing sizes (e.g., the C:\Windows directory).
Also, changing from Browse to List didn't seem to help either (what does that do?). It's still slow.
To see the attached files, you need to log into the forum.
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.
-
admin
- Site Admin
- Posts: 66360
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: How to calculate custom column after default columns
Show your code, please. (In Configure Custom Column right-click the Clear button in select Copy Snippet)
Well, sure it is slow. Calculating folder sizes is about the hardest thing you can do in a file system.
Well, sure it is slow. Calculating folder sizes is about the hardest thing you can do in a file system.
FAQ | XY News RSS | XY X
-
Sander Bouwhuis
- Posts: 249
- Joined: 10 Jun 2008 15:40
- Location: Netherlands
Re: How to calculate custom column after default columns
Code: Select all
Snip: CustomColumn 1
XYplorer 14.00.0100, 13-May-2014 11:01:18
Action
ConfigureColumn
Caption
Files
Type
3
Definition
return foldersize(<cc_item>, <f>);
Format
2
Trigger
1
Item Type
1
Item Filter
Also, I got this error:
Error: 10 (0x0000000A)
Desc: This array is fixed or temporarily locked
Dll: 0
Proc: cLi@20
Source: XYplorer
XY ver: XYplorer 14.00.0100
OS: Windows 7 Home Premium (Service Pack 1), 64-bit
Locale: 1033
ANSI: 1252
ACP: 1252 (ANSI - Latin I)
DBCS: No
DPI: 96 (100%)
Date: 13-May-2014 11:11:09
Last edited by Sander Bouwhuis on 13 May 2014 11:12, edited 1 time in total.
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.
-
admin
- Site Admin
- Posts: 66360
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: How to calculate custom column after default columns
No, that won't work. Custom Columns are not processed in the BACKGROUND.
BTW, your scripts seems to work fine here.
BTW, your scripts seems to work fine here.
FAQ | XY News RSS | XY X
-
Sander Bouwhuis
- Posts: 249
- Joined: 10 Jun 2008 15:40
- Location: Netherlands
Re: How to calculate custom column after default columns
That's a shame, because the standard size column (that calculates the folder size) DOES allow us to continue working.
So, how about the C:\Windows folder missing the count?
So, how about the C:\Windows folder missing the count?
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.
-
admin
- Site Admin
- Posts: 66360
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: How to calculate custom column after default columns
Like I said, it works here. Cannot explain it.iycgtptyarvg wrote:So, how about the C:\Windows folder missing the count?
FAQ | XY News RSS | XY X
XYplorer Beta Club