Get the App
SLTechnology News&Howtos  ›  Development  › 

How to write a VBS script to view the remaining space on system C disk

Shulou Source: shulou.com Published: 2022-06-03 07:40:21 10月03日 Update

This article mainly explains "how to write a VBS script to view the remaining space of the system C disk". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and study and learn "how to write a VBS script to view the remaining space of the system C disk" together!

The copy code is as follows:

'Description: View the remaining space on system C drive via VBS script

'Creator : Eric1991

'Date : 2013-11-4

Set objWMIService = GetObject("winmgmts:")

Set objLogicalDisk = objWMIService.Get("Win32_LogicalDisk.DeviceID='c:'")

Wscript.Echo cint(objLogicalDisk.FreeSpace / 1024 / 1024 / 1024) & "GB"

Thank you for reading, the above is "how to write a view system C disk remaining space VBS script" content, after the study of this article, I believe that we have a deeper understanding of how to write a view system C disk remaining space VBS script this problem, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Tags: Space system script surplus learning code content that is ideas situations articles more knowledge knowledge points articles follow questions practice push research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Xiaomi Huawei Docker macOS