tags:

views:

20

answers:

0
<html>
<body>
<%@ Language=VBScript  ENABLESESSIONSTATE = False%>
<form Name="sushant" method="post" action="sushant.asp">
<select id="selFiles" name="selFiles" class="Select" style="width: 250px" tabindex="130">

<% 

Dim fso, folder, files

Set fso=Server.CreateObject("Scripting.FileSystemObject")  

Set folder=fso.GetFolder("C:\")  

Set files=folder.Files    
For each folderIdx In files 

    Response.Write("<option>" + folderIdx.Name + "</option>")

Next  

 %>
</select>
</body>
</html>

i am trying this code by giving its link in another file. but on execution IE shows an error in line set fso=Server.createobject..... i am trying but i could not locate the error. can anyone help me out. sorry for the formatting issue.