Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Windows Home Server 2011 : Maintaining Windows Home Server - Checking Free Disk Space on the System Drive

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
7/25/2013 6:12:25 PM

Hard disks with capacities measured in the hundreds of gigabytes are commonplace even in low-end systems nowadays, so disk space is much less of a problem than it used to be. However, remember that Windows Home Server has a system partition—drive C:—and that volume comes with a fixed 60GB size. With Windows Home Server taking up about 10- to 16GB (depending on the size of the paging file), you only have so much space left over to install other programs or store data in the Administrator account’s local folders. Therefore, it’s a good idea to keep track of how much free space you have on drive C:.

One way to check disk free space is to select Start, Computer. The Tiles view (select View, Tiles to see it) tells you the free space and the total size and displays the used portion of the disk in a graph, as shown in Figure 1. Alternatively, right-click drive C: in Windows Explorer and then click Properties. The system partition’s total capacity, as well as its current used and free space, appear in the General tab of the property sheet, as shown in Figure 2.

Figure 1. In Windows Explorer, display the Computer window in Details view to see the total size and free space on your system’s disks.

Figure 2. Right-click drive C:, and then click Properties to see the system drive’s total size and free space.


Listing 1 presents a VBScript procedure that displays the status and free space for each drive on your system.

Listing 1. A VBScript Example That Displays the Status and Free Space for the System Drive (C:)
Option Explicit
      Dim objFSO, strMessage

      ' Create the File System Object
      Set objFSO = CreateObject("Scripting.FileSystemObject")

      ' Start the display string
      strMessage = "Status Report for Drive C" & vbCrLf & vbCrLf

      ' Get the properties of drive C
      With objFSO.Drives("C")

          ' Add the volume name to the message
          strMessage = strMessage & "Volume Name: " & .VolumeName & vbCrLf

          ' Check the drive status
          If .IsReady = True Then

              ' If it's ready, add the status, total size,
              ' and the free space to the message
              strMessage = strMessage & "Status: Ready" & vbCrLf
              strMessage = strMessage & "Total space: " & _
                           FormatNumber(.TotalSize / 1073741824, 2) & " GB" & vbCrLf
              strMessage = strMessage & "Free space: " & _
                           FormatNumber(.FreeSpace / 1073741824, 2) & " GB"
              strMessage = strMessage & vbCrLf & vbCrLf
          Else

              ' Otherwise, just add the status to the message
              strMessage = strMessage & "Status: Not Ready" & vbCrLf & vbCrLf
          End If
      End With

      ' Display the message
WScript.Echo strMessage

					  

This script creates a FileSystemObject and then uses its Drives collection to return a reference to the system drive: Drives("C"). Then the script checks the Drive object’s IsReady property. If the drive is available (there’s no reason why it wouldn’t be, but you never know), a series of property values is added to the message: VolumeName, TotalSize, and FreeSpace. (Note that the last two are converted from bytes to gigabytes by dividing the property value by 1,073,741,824.) The script finishes by displaying the drive data, as shown in Figure 3.

Figure 3. The script displays the name, status, total space, and free space for the system drive.

Other -----------------
- Windows Home Server 2011 : Maintaining Windows Home Server - Checking Your Hard Disk for Errors
- Windows Home Server 2011 : Maintaining Windows Home Server - Checking System Uptime
- HP ProLiant Servers AIS : How Memory Works
- HP ProLiant Servers AIS : Memory and Cache
- SQL Server 2008 R2 : A Performance Monitoring Approach (part 3) - Monitoring Memory, Monitoring the Disk System
- SQL Server 2008 R2 : A Performance Monitoring Approach (part 2) - Monitoring the Processors
- SQL Server 2008 R2 : A Performance Monitoring Approach (part 1)
- Microsoft Systems Management Server 2003 : The Four-Phase Patch Management Process (part 2) - The Evaluate & Plan Phase, The Deploy Phase
- Microsoft Systems Management Server 2003 : The Four-Phase Patch Management Process (part 1) - The Assess Phase, The Identify Phase
- Microsoft Systems Management Server 2003 : Patch Management - Preparing for Patch Management
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server