Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The usage of the VBS property FreeSpace

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains "the usage of VBS attribute FreeSpace". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian slowly and deeply to study and learn "the usage of VBS attribute FreeSpace" together!

Returns the amount of space available to the user on the specified drive or network share. Read only.

object.FreeSpace

object Expected the name of the Drive object.

description

The FreeSpace property returns essentially the same value as the Available Space property. For computer systems that support quotas, these two properties return different values.

The following code illustrates how to use the FreeSpace property:

Function ShowFreeSpace(drvPath) Dim fso, d, s Set fso = CreateObject("Scripting.FileSystemObject") Set d = fso.GetDrive(fso.GetDriveName(drvPath)) s = "Drive" & UCase(drvPath) & " - " s = s & d.VolumeName &"

" s = s & "Free Space: " & FormatNumber(d.FreeSpace/1024, 0) s = s & "KB"ShowFreeSpace = sEnd Function Thank you for reading, the above is the content of "Usage of VBS FreeSpace attribute", after learning this article, I believe that everyone has a deeper understanding of the usage of VBS FreeSpace attribute, and the specific usage needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report