directories info??

English support forum

Moderators: white, Hacker, petermad, Stefan2

Mbwana
Junior Member
Junior Member
Posts: 5
Joined: 2004-09-02, 14:10 UTC

directories info??

Post by *Mbwana »

hi...

is it also possible for the commander to tell me how many directories there are? right now it only tells you something like this:

0k / 5660 k in 0 / 123 files

but it does not tell me how many directories there are.
is there an option to turn that on?? something like this:

0 / 22 Directories with 0k / 5660 k in 0 / 123 files

or something like that?

mbwana
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

A known wish---

Post by *Clo »

2Mbwana
:) Hello !

¤ As far as I know, there is no setting for this.
- Maybe it's not difficult to implement, but the space on the status-bar could be insufficient with low screen-definitions.
- This has been already suggested / discussed, i.e. HERE
- Some plugins could make this too (perhaps, I don't know one).

:mrgreen:  Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 11-09-2004 21:27:29 +0000 Mbwana wrote:

M> is it also possible for the commander to tell me how many
M> directories there are?


Place focus on directory name, hit ^Q and you'll get in the opposite panel

Total space occupied:
5 660 000 bytes in 123 file(s),
in 22 directories

or something like that.[/face]
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 11-09-2004 21:42:17 +0000 Clo wrote:

C> - This has been already suggested / discussed, i.e. HERE

Dear Clo, the thread you mentioned has no relation with things Mbwana talking about, it is about permanent directory size representation.[/face]
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Search is fancy

Post by *Clo »

2Black Dog
Hi !
- There is another thread, I guess he could search with the same keywords…
Besides, it seems that he asked for a display in the status-bar directly -though the Quick-View does the trick, indeed-, but needs a handle.

Regards,
Claude
Clo

[mod]
It's ok to write an answer that provides a solution which is not 100% what the topic starter was looking for. 8)

Lefteous (Moderator)
[/mod]
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 11-09-2004 22:59:18 +0000 Clo wrote:

C> - There is another thread, I guess he could search with the
C> same keywords…


Well, if I give me trouble to place here some links, I make sure they are the proper ones...

C> Besides, it seems that he asked for a display in the status
C> -bar directly


It's pure "how to" answer, if one needs it it can use it, if not, well, you know.[/face]


[mod]
Don't push Clo for giving a solution for another problem. Making mistakes happens to everyone from time to time. 8)

Lefteous (Moderator)
[/mod]
Last edited by Black Dog on 2004-09-12, 08:58 UTC, edited 1 time in total.
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Re: directories info??

Post by *Raymond »

@Mbwana

Maybe THIS will helps.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Next step ?

Post by *Clo »

2Raymond
:) Hi Raymond !
¤ Thanks, it works fine. I'll place that trick on the French forum. With a result in French, indeed ;)

* Maybe a next step : to display the same in the status-bar (when wide enough…) and everybody'ld be glad ! :P

:mrgreen:  Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Re: Next step ?

Post by *Raymond »

Clo wrote:* Maybe a next step : to display the same in the status-bar (when wide enough…) and everybody'ld be glad ! :P
In fact it's my long wish too.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

With a plugin...

Post by *Clo »

2Raymond
:) Hi again !
In fact it's my long wish too.
- Like I said above, I placed your trick in the French Forum
- That works fine too with a button in the bar ;)
… and I launched a call to the French-speaking users in order to get a small plugin (perhaps…)

:mrgreen: Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: directories info??

Post by *Sheepdog »

Raymond wrote:@Mbwana

Maybe THIS will helps.
Hi Raymond,

I'm surprised that this works for me too, since I haven' t installed any Visual Basic at sll. Of course there must be the engine built into windows.

Two lacks:

1. I'd rather expect to get the count of the folder totalcmd if my cursor is on this folder than the count of Programme wherer the folder totalcmd is in.

2. Id like to see the count of subfolders, too.

Any chance too expand/adopt your (the) code?

kind regards

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

A request ?

Post by *Clo »

2Sheepdog
:) Hello Stefan !

¤ Like you can see above, I launched a call to get a plugin or a more elaborated script to get that you wish…
* If no reply, what about a plugin request in the «Plugins…» forum ?

:mrgreen: Friendly,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Re: directories info??

Post by *Raymond »

@Clo
Glad it could be useful for others. :)

@Sheepdog
Maybe Ctrl+L works for you? It counts subfolders recursively.
Actually it's not MY code. :P I got it from somewhere else. From the last text line of it, I guess the orginal author is W!ke76, the link is old Totalcmd forum, right?

I don't konw Visual Basic so maybe someone else would help to improve it.
And as I said above, I'll be very happy if Christian could make it displayed in status bar.
CoolWater
Power Member
Power Member
Posts: 734
Joined: 2003-03-27, 16:33 UTC

Re: directories info??

Post by *CoolWater »

Sheepdog wrote:1. I'd rather expect to get the count of the folder totalcmd if my cursor is on this folder than the count of Programme wherer the folder totalcmd is in.
How about calling the script with %P%N ? ;)

Regards,
CoolWater
CoolWater
Power Member
Power Member
Posts: 734
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

2Sheepdog

just for you ;) and all others :lol: count of subfolders...

Code: Select all

Set objArgs = WScript.Arguments
Set fso = CreateObject("Scripting.FileSystemObject")
SubDirCount = 0

For I = 0 to objArgs.Count - 1
   If fso.folderExists( objArgs(I) ) then
      Set folder = fso.GetFolder(objArgs(I))
      LastPart = Mid(folder, InStrRev(folder, "\") + 1)
      RecurseFolder folder, fso
      Call MsgBox("The number of subfolders in the selected dir '" + LastPart + "' is: " & SubDirCount, 64, folder)
   End If
Next

Sub RecurseFolder(sPath, fso)
	Dim fFolder, fSubFolders, fSubFolder

	Set fFolder = fso.GetFolder(sPath) 
	Set fSubFolders = fFolder.SubFolders

    'Now recurse for each subfolder in the sPath folder...
    For Each fSubFolder In fSubFolders
        '*** Call self to recurse down folders
        Call RecurseFolder(sPath & "\" & fSubFolder.name, fso)
        SubDirCount = SubDirCount + 1
    Next
End Sub
'Original by W!ke76(http://www.eforum.de/showthread.php?s=&threadid=1356)
Regards,
CoolWater
Post Reply