Total members 11895 |It is currently Sat Dec 21, 2024 3:21 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>
 




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com