Switch to full style
ASP/ASP.net examples
Post a reply

show all drivers in file system

Fri Apr 08, 2011 2:57 pm

show all drivers in file system
Code:
<html>
<%
 
'declare our variables 
    Dim objFileSyetm, objDriveFile, driveObj
    '
 create File System Object.
    objFileSyetm = Server.CreateObject("Scripting.FileSystemObject")
    objDriveFile = objFileSyetm.Drives
    
'loop for every drive  
    For Each driveObj In objDriveFile
        '
check if drive ready.
        If driveObj.IsReady Then
            Response
.Write("Drive Letter:" & driveObj.DriveLetter & "<br>")
            Response.Write("Drive Path:" & driveObj.Path & "<br>")
            Response.Write("Drive Free Space:" & driveObj.FreeSpace & "<br>")
            Response.Write("Drive Total Size:" & driveObj.TotalSize & "<br>")
            Response.Write("Drive File System:" & driveObj.FileSystem & "<br>")
             
        Else
            
'driver not ready .
            Response.Write(driveObj.DriveLetter & "<br>")
            Response.Write("is unavailable")
        End If
    Next
    '
 delete objects.
    objDriveFile = Nothing
    objFileSyetm 
= Nothing
%>
</
html>
 




Post a reply
  Related Posts  to : show all drivers in file system
 show uploaded file name, size and type     -  
 What are the types of jdbc drivers.?     -  
 Encrypt/Decrypt a file from source file to target file.     -  
 Re: An example show what is LAN     -  
 Copy file to file in java code- implementation     -  
 show the content of set     -  
 how to show hashmap value in a textbox     -  
 Show Progress Bar using JQuery     -  
 image slide show     -  
 Show slider Bar using JQuery     -  

Topic Tags

ASP Files and I/O