Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script hangs on GetFolder (Scripting FSO)

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
K, here is my code:
fldrString = "\images\jobs2\" & job & "\full"
Response.Write Request.Form(&quot;job&quot;) & &quot;, &quot; & job & &quot;<br>&quot;
Response.Write fldrString & &quot;<br>&quot;
Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
fldrString = Server.MapPath(fldrString)
Response.Write fldrString & &quot;<br>&quot;
Set objFolder = objFSO.GetFolder(fldrString)

My page hangs on the last line. If I don't have that line, the code works. But I am going to have code afterwards that needs objFolder. Why would this hang?

(For some reason my webserver is not giving me error codes. So for now, I cannot give them to you.)
 
Nevermind, the code was fine, it was user error. (The folder has to be there. I will put in a check to make sure the folder is there, if not it will give an error message.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top