This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Disk Space Info

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
AnthonyCian
Senior Member
Senior Member


Joined: 15 Jun 2005
Posts: 263
Location: Thatcher Az. USA

PostPosted: Sun Jul 09, 2006 2:09 pm    Post subject: Disk Space Info Reply with quote

I noticed when I click on the spacebar while on a folder, it will give me the disk space usage for that folder. If that folder has subfolders it will include that disk space as well. Anyway to tell TC not to include subfolder disk space?

I'm using the plugin dirsize.wlx and it's ok, but like to know if TC will have something direct?

Thanks,

Anthony


Last edited by AnthonyCian on Sun Jul 09, 2006 2:33 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
XPEHOPE3KA
Power Member
Power Member


Joined: 03 Mar 2006
Posts: 848
Location: Saint-Petersburg, Russia

PostPosted: Sun Jul 09, 2006 2:33 pm    Post subject: Reply with quote

AnthonyCian
You can't do that: if you calculate the size via space, it will always be with subfolders. You can try asking Lefteous to add some functionality to his DirSizeCalc plugin.
_________________
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
Back to top
View user's profile Send private message
van Dusen
Power Member
Power Member


Joined: 16 Sep 2004
Posts: 683
Location: Sinzig (Rhein), Germany

PostPosted: Tue Jul 11, 2006 2:46 pm    Post subject: Reply with quote

2AnthonyCian

You could try this VB-Script for Lev Freidin's Script Content Plugin 0.1.0.1:

Code:
'*** dirsize_nonrecursive, van Dusen, 11.07.2006
'Script for Script Content Plugin
'(c)Lev Freidin, 2005
'http://www.totalcmd.net/plugring/script_wdx.html
'http://wincmd.ru/plugring/script_wdx.html

Dim fso, folder, filecollection, file
Set fso = CreateObject("Scripting.FileSystemObject")
dirsize = 0
content = ""

If fso.FolderExists(filename) Then

   Set folder = fso.GetFolder(filename)
   Set filecollection = folder.Files
   For Each file in filecollection
      dirsize = dirsize + file.size
   Next
   
   content = FormatNumber(dirsize, 0, 0, 0, -2)
   
   Set folder = Nothing
   Set filecollection = Nothing
   
End If

Set fso = Nothing


Save this script as "dirsize_nonrecursive.vbs" to the script_wdx.wdx installation folder. Your script.ini should look like this:

Code:
[Script]
Section=DirSize_NonRecursive

[Defaults]
LongName=0
ParseDirs=0

[DirSize_NonRecursive]
LongName=0
ParseDirs=1
Script=DirSize_NonRecursive.vbs


Add a new column to a new or an existing custom column view with content
Code:
[=script.Result]


Switch to that custom column view... done Smile
Back to top
View user's profile Send private message Send e-mail
AnthonyCian
Senior Member
Senior Member


Joined: 15 Jun 2005
Posts: 263
Location: Thatcher Az. USA

PostPosted: Tue Jul 11, 2006 6:47 pm    Post subject: Reply with quote

Thank You!
AC
Back to top
View user's profile Send private message Send e-mail
Lev
Junior Member
Junior Member


Joined: 14 Dec 2004
Posts: 82

PostPosted: Wed Jul 12, 2006 7:01 am    Post subject: Reply with quote

Just for your information.
You don't need to include the [Defaults] section to ini file it's just for the informaton about ini defaults. This section is neither read nor set by plugin. So there is no use of changing it content too (it can miss you).
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group