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?
¤ 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).
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]
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]
- 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.
Message from moderator
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]
Message from moderator
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 !
Hi again !
- Like I said above, I placed your trick in the French ForumIn fact it's my long wish too.
- 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…)
Hi Raymond,Raymond wrote:@Mbwana
Maybe THIS will helps.
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.
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?
completely foolproof is to underestimate the ingenuity of complete fools."
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 ?
Glad it could be useful for others.
Maybe Ctrl+L works for you? It counts subfolders recursively.
Actually it's not MY code. 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.
How about calling the script with %P%N ?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.
just for you and all others 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)