tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 
 VB Script > Basic > List of drives

List of drives 

The following programs shows how to list the drives available in the system. Its just as simple as initializing "FileSystemObject" scripting object.

File Name  :  
source/VBS/basic/drives.vbs 
Author  :  Sudhakar KV
Email  :  kvenkatasudhakar@gmail.com

It gives the following output,
File Name  :  
source/VBS/basic/drives.txt 
D:\VBS\basic>cscript drives.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.


 Name = A:
 Type = 1
 Drive Letter = A

 Name = C:
 Type = 2
 Drive Letter = C

 Name = D:
 Type = 2
 Drive Letter = D

 Name = E:
 Type = 2
 Drive Letter = E

 Name = F:
 Type = 2
 Drive Letter = F

 Name = G:
 Type = 2
 Drive Letter = G


                    Print

   



Books Recommendation

 
 
bl  br