Classic Shell development was stopped in December 2017. For now the forum remains online as reference, but is read-only. Registration of new users is disabled.
It is currently Tue Oct 21, 2025 10:01 am

All times are UTC - 8 hours [ DST ]


Forum rules


Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.
If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Jun 05, 2014 2:08 am 
Offline

Joined: Thu Jun 05, 2014 1:27 am
Posts: 3
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


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 05, 2014 6:53 am 
Offline

Joined: Thu Jun 05, 2014 1:27 am
Posts: 3
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


Attachments:
totalCmd.jpg
totalCmd.jpg [ 59.44 KiB | Viewed 12371 times ]
Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 06, 2014 2:01 am 
Offline

Joined: Thu Jun 05, 2014 1:27 am
Posts: 3
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 59 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.