Ok, this will probably win the stupidest question of the week contest, but here it goes...
I'm trying to write a web page that lists the files in a certain directory. The code works if I put it into a .vbs file (using msgbox instead of Response.Write), but fails in a .asp, .htm, or any other type of IE file. I'm not getting any errors, but simply a blank IE page.
Here is my code.
Thanks in advance for taking a look at this!!
I'm trying to write a web page that lists the files in a certain directory. The code works if I put it into a .vbs file (using msgbox instead of Response.Write), but fails in a .asp, .htm, or any other type of IE file. I'm not getting any errors, but simply a blank IE page.
Here is my code.
Code:
<%@ LANGUAGE="VBSCRIPT" %>
<html>
<head>
<title>Test1.asp</title>
</head>
<body>
<%
strDir = "\\Server\share\"
Set FSO = CreateObject("Scripting.FileSystemObject")
Set objDir = FSO.GetFolder(strDir)
Response.Write("<tr>test")
For Each aItem In objDir.Files
response.write("<td><b>" & aItem & "</b></td>)
Next
Response.Write("</tr>")
%>
</body>
</html>
Thanks in advance for taking a look at this!!