I dont know where else to put this one....
I am using ASP on an IIS5 server (Win2K Server/SP2).
When using FileSystemObject, I try and use fso.GetFolder, but it doesn't work
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE>Vote for your Fav Songs</TITLE>
</HEAD>
<BODY bgColor=Black text=Khaki Link=GreenYellow vLink=GreenYellow>
<font face="verdana">
<h2>Vote for your Fav Songs</h2>
<%
Dim fs,f,fc,f1,s,file,link,path
path = "c:\"
Set fs = CreateObject("Scripting.FileSystemObject"
Set f = fs.GetFolder("c:\web\vote\" <--THIS LINE STOPS THE SCRIPT
Set fc = f.Files
for Each f1 in fc
file = s & f1.name
link = file + "<br>"
link = "<a href=http://freefrag.d2g.com/vote.asp?song=" + file + ">" + file + "</a><br>"
Response.Write(link)
s = ""
Next
%>
Basically, when I go to this page it creeps up to 50% loaded and then stops. Nothing.
I know it is this line because if i comment it out (and all the other lines that depend on the variable F) the page loads fine.
Thanks for ANY help
I am using ASP on an IIS5 server (Win2K Server/SP2).
When using FileSystemObject, I try and use fso.GetFolder, but it doesn't work
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE>Vote for your Fav Songs</TITLE>
</HEAD>
<BODY bgColor=Black text=Khaki Link=GreenYellow vLink=GreenYellow>
<font face="verdana">
<h2>Vote for your Fav Songs</h2>
<%
Dim fs,f,fc,f1,s,file,link,path
path = "c:\"
Set fs = CreateObject("Scripting.FileSystemObject"
Set f = fs.GetFolder("c:\web\vote\" <--THIS LINE STOPS THE SCRIPT
Set fc = f.Files
for Each f1 in fc
file = s & f1.name
link = file + "<br>"
link = "<a href=http://freefrag.d2g.com/vote.asp?song=" + file + ">" + file + "</a><br>"
Response.Write(link)
s = ""
Next
%>
Basically, when I go to this page it creeps up to 50% loaded and then stops. Nothing.
I know it is this line because if i comment it out (and all the other lines that depend on the variable F) the page loads fine.
Thanks for ANY help