FileSystemObject Problems
-
I'm trying ot use the ASP FileSystemObject to create new folders in my web application and unable to do so. The FolderExists call seems to work but when the CreateFolder function is called the application locks up. I've tried giving full access to iuser and shared the c:\ drive as well as shutting down zonealarm and norton (Only while offline) but nothing seems to help. This is the simple code I'm trying to use. Any hints would be appreciated. <% Dim objFSO Set objFSO= Server.CreateObject("Scripting.FileSystemObject") 'Create the folder If Not objFSO.FolderExists("C:\newFolder") then objFSO.CreateFolder("C:\newFolder") End If %> Tom.
-
I'm trying ot use the ASP FileSystemObject to create new folders in my web application and unable to do so. The FolderExists call seems to work but when the CreateFolder function is called the application locks up. I've tried giving full access to iuser and shared the c:\ drive as well as shutting down zonealarm and norton (Only while offline) but nothing seems to help. This is the simple code I'm trying to use. Any hints would be appreciated. <% Dim objFSO Set objFSO= Server.CreateObject("Scripting.FileSystemObject") 'Create the folder If Not objFSO.FolderExists("C:\newFolder") then objFSO.CreateFolder("C:\newFolder") End If %> Tom.
Usually this happens when you have Norton Antivirus installed with Script Blocking enabled (even if NA is disabled by itself). So you should disable the script blocking in Norton to be able to use FileSystemObject. To read more about this problem, here is the link: http://support.microsoft.com/default.aspx?scid=kb;en-us;295375[^] Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer