Friday, October 15, 2010

Create a filesystem object in ASP for getting the name of all drives

'Create an instance of the file system onbect
<% 
set Objdrive = server.createobject("scripting.filesystemobject") 
%>
' now we will display the list of drives in a dropdown list
<% for each drive in Objdrive.drives %>
 <%= drive %>
<%next%>
 < select >

2 comments:

  1. How to get properties of system drives.like Free space ,total size and file system etc

    ReplyDelete
  2. mast hi Sir
    Abhishek S

    ReplyDelete