Classic Shell http://classicshell.net/forum/ |
|
status bar - free space & quotas http://classicshell.net/forum/viewtopic.php?f=8&t=2756 |
Page 1 of 1 |
Author: | csc [ Thu Jun 05, 2014 2:08 am ] |
Post subject: | status bar - free space & quotas |
Hi, is it possible to customize the status bar not to show the total free size, but the available size taking account of quotas? I have a NAS providing several network shares with tree / directory quotas applied. If I use the UNC name to connect to the share, the total size of the underlying file system is shown. After looking to the source code (3.6.8), it seems the second argument of GetDiskFreeSpaceEx() could give the desired information. Thanks Christian |
Author: | csc [ Thu Jun 05, 2014 6:53 am ] | ||
Post subject: | Re: status bar - free space & quotas | ||
It's doable and has been done already in Total Commander. The attached image shows the infos about a DFS-Link to a Share. Despite not being a Windows Developer, I think GetDiskFreeSpaceEx() can be used: * http://support.microsoft.com/kb/231497/en-us I'm also willing to do some tests. Christian
|
Author: | csc [ Fri Jun 06, 2014 2:01 am ] |
Post subject: | Re: status bar - free space & quotas |
I did some tests with a powershell script [1] which uses getFreeDiskSpaceEx(). It works as expected: ### share with directory quotas ### totalFree(GB) : 406,698150634766 Path : \\nas-b\test_30GB total(GB) : 30 Success : True Free(GB) : 30 ### DFS link to share (\\nas-b\test_30GB) with directory quotas ### totalFree(GB) : 406,698150634766 Path : \\domain.local\daten\prj\FES\PROJECT\test_30GB total(GB) : 30 Success : True Free(GB) : 30 ### directory in share with directory quotas ### totalFree(GB) : 406,698150634766 Path : \\nas-b\test_30GB\test total(GB) : 30 Success : True Free(GB) : 30 ### DFS link to directory (\\nas-b\test_30GB\test) in share with directory quotas ### totalFree(GB) : 406,698150634766 Path : \\domain.local\daten\prj\FES\PROJECT\test_30GB\test total(GB) : 30 Success : True Free(GB) : 30 ### directory with directory quotas in share ### totalFree(GB) : 406,698150634766 Path : \\nas-b\prj\FES\PROJECT\test_30GB total(GB) : 12100,4999847412 Success : True Free(GB) : 406,698150634766 ### DFS link to directory (\\nas-b\prj\FES\PROJECT\test_30GB) with directory quotas in share ### totalFree(GB) : 406,698150634766 Path : \\domain.local\daten\prj\FES\PROJECT\test_30GB_2 total(GB) : 12100,4999847412 Success : True Free(GB) : 406,698150634766 ### mapped drive (\\nas-e\usr\csc) with user quotas ### totalFree(GB) : 793,941215515137 Path : z: total(GB) : 6 Success : True Free(GB) : 5,99538421630859 ### share with user quotas ### totalFree(GB) : 793,941215515137 Path : \\nas-e\usr\ total(GB) : 6 Success : True Free(GB) : 5,99538421630859 ### directory in share with user quotas ### totalFree(GB) : 793,941215515137 Path : \\nas-e\usr\csc total(GB) : 6 Success : True Free(GB) : 5,99538421630859 I hope this helps. Christian [1] http://gallery.technet.microsoft.com/sc ... X-e015701e |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |