<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FStream_File%2FDrive</id>
		<title>VB.Net Tutorial/Stream File/Drive - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FStream_File%2FDrive"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Stream_File/Drive&amp;action=history"/>
		<updated>2026-04-05T12:42:10Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Stream_File/Drive&amp;diff=3710&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Stream_File/Drive&amp;diff=3710&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Stream_File/Drive&amp;diff=3711&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Stream_File/Drive&amp;diff=3711&amp;oldid=prev"/>
				<updated>2010-05-26T12:56:24Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==DriveInfo: AvaiableFreeSpace, DriveFormat, TotalFreeSpace, VolumnLabel==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.IO&lt;br /&gt;
public class Test&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Dim drive_info As New DriveInfo(&amp;quot;c:\&amp;quot;)&lt;br /&gt;
        Console.WriteLine(drive_info.Name())&lt;br /&gt;
        Console.WriteLine(drive_info.IsReady())&lt;br /&gt;
        Console.WriteLine(drive_info.DriveType())&lt;br /&gt;
        Console.WriteLine(drive_info.RootDirectory)&lt;br /&gt;
        If drive_info.IsReady() Then&lt;br /&gt;
            Console.WriteLine(drive_info.AvailableFreeSpace())&lt;br /&gt;
            Console.WriteLine(drive_info.DriveFormat())&lt;br /&gt;
            Console.WriteLine(drive_info.TotalFreeSpace())&lt;br /&gt;
            Console.WriteLine(drive_info.VolumeLabel())&lt;br /&gt;
        End If&lt;br /&gt;
&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;c:\&lt;br /&gt;
True&lt;br /&gt;
3&lt;br /&gt;
c:\&lt;br /&gt;
35531018240&lt;br /&gt;
NTFS&lt;br /&gt;
35531018240&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DriveInfo.GetDrives==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.IO&lt;br /&gt;
public class Test&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        For Each drive_info As DriveInfo In DriveInfo.GetDrives()&lt;br /&gt;
            Console.WriteLine(drive_info.Name)&lt;br /&gt;
        Next drive_info&lt;br /&gt;
&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;C:\&lt;br /&gt;
D:\&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==DriveInfo: Name, IsReady, DriveType, RootDirectory==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.IO&lt;br /&gt;
public class Test&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Dim drive_info As New DriveInfo(&amp;quot;c:\&amp;quot;)&lt;br /&gt;
        Console.WriteLine(drive_info.Name())&lt;br /&gt;
        Console.WriteLine(drive_info.IsReady())&lt;br /&gt;
        Console.WriteLine(drive_info.DriveType())&lt;br /&gt;
        Console.WriteLine(drive_info.RootDirectory)&lt;br /&gt;
        If drive_info.IsReady() Then&lt;br /&gt;
            Console.WriteLine(drive_info.AvailableFreeSpace())&lt;br /&gt;
            Console.WriteLine(drive_info.DriveFormat())&lt;br /&gt;
            Console.WriteLine(drive_info.TotalFreeSpace())&lt;br /&gt;
            Console.WriteLine(drive_info.VolumeLabel())&lt;br /&gt;
        End If&lt;br /&gt;
&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;c:\&lt;br /&gt;
True&lt;br /&gt;
3&lt;br /&gt;
c:\&lt;br /&gt;
35531018240&lt;br /&gt;
NTFS&lt;br /&gt;
35531018240&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Get current Drive==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Option Strict On&lt;br /&gt;
Public Module CurDriveFunction&lt;br /&gt;
   Public Sub Main()&lt;br /&gt;
      Console.WriteLine(&amp;quot;The current drive is {0}.&amp;quot;, Left(CurDir(), 1))&lt;br /&gt;
   End Sub&lt;br /&gt;
End Module&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;The current drive is C.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Get Logical drives==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.IO&lt;br /&gt;
Public Class Tester&lt;br /&gt;
    Public Shared Sub Main&lt;br /&gt;
    &lt;br /&gt;
        Dim StrS() As String&lt;br /&gt;
        Dim i As Integer&lt;br /&gt;
        StrS = System.IO.Directory.GetLogicalDrives()&lt;br /&gt;
        For i = 0 To StrS.Length - 1&lt;br /&gt;
            Console.WriteLine(StrS(i))&lt;br /&gt;
        Next i&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;C:\&lt;br /&gt;
D:\&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>