Display the filesystem of a drive

Posted on March 12th, 2009 in Visual Basic by admin

‘Add a list box to the form and then add a reference to the Microsoft Scripting Runtime

Private Sub Form_Load()
Dim fldr As Folder
Dim fso As New FileSystemObject
Dim drv As Drive
Set drv = fso.GetDrive(fso.GetDriveName(”d:”))
MsgBox (”File system is ” & drv.FileSystem)

End Sub

Related posts:

  1. File system object example ‘Add a list box to the form and then add...
  2. Display a CSV file Display a CSV file CSV files are common formats to...
  3. check whether a file exists Private Sub Form_Load() Dim objfso As New FileSystemObject If objfso.FileExists(”f:test.txt”)...

Related posts brought to you by Yet Another Related Posts Plugin.

Post a comment