﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Find Amount of Disk Space Available</Title>
      <Author>Microsoft Corporation</Author>
      <Description>Obtains the amount of disk space available.</Description>
      <Shortcut>filSpace</Shortcut>
    </Header>
    <Snippet>
      <Imports>
        <Import>
          <Namespace>Microsoft.VisualBasic</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Literal>
          <ID>Drive</ID>
          <ToolTip>Replace with drive name.</ToolTip>
          <Default>"C:\"</Default>
        </Literal>
      </Declarations>
      <Code Language="VB" Kind="method body"><![CDATA[Dim freeSpace As Long 
freeSpace = My.Computer.FileSystem.GetDriveInfo($Drive$).TotalFreeSpace]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>