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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FSO not working?!

Status
Not open for further replies.

whiteadi

Programmer
Apr 8, 2003
11
NL
I do not wht the FSO , FileSystemObject, is not working!

When I try to delete an image in a folder it blocks the script.

I tried one test page like this:

<%
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")


Dim objFolder
Set objFolder = objFSO.GetFolder("C:\Inetpub\
Response.Write "The files found in " & objFolder.Name & ":<br>"


Dim objFile
For Each objFile in objFolder.Files
Response.Write objFile.Name & "<br>"
Next


Set objFolder = Nothing
Set objFile = Nothing
Set objFSO = Nothing
%>

but it just keep loading.

Never happened before, I am on a new server.

what can be the problem because I get no error.
 
Sounds like a permissions issue, you must make sure you have read/right permissions in the folder you are using. This is so you can't delete folders such as c:\windows\

www.sitesd.com
ASP WEB DEVELOPMENT
 
yeah, it was Script blocking feature form Norton Anti Virus ... :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top