Permission Denied Error
-
Im using the file system object to delete files from the W2k server, and am running into the permission denied error. Things Ive done/checked: - Given full access to the IUSR user on the folder/files to delete - Given full access to everyone on SCRRUN.DLL - Rebooted several times just in case - The file is not read only (and im using the force=true parameter anyway) What else can I try???
-
Im using the file system object to delete files from the W2k server, and am running into the permission denied error. Things Ive done/checked: - Given full access to the IUSR user on the folder/files to delete - Given full access to everyone on SCRRUN.DLL - Rebooted several times just in case - The file is not read only (and im using the force=true parameter anyway) What else can I try???
-
Ned, Where is this file located that you are trying to delete? How are you accessing the file through FSO? If possible, please post your code. Tony
My asp code sits in C:\AC Projects\ISAS\Report Arch\RR which is setup as a virtual directory in IIS and the file to delete sits in C:\Temp\reports, both on the same machine. The relevant code is: Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile "killme.txt", true
-
My asp code sits in C:\AC Projects\ISAS\Report Arch\RR which is setup as a virtual directory in IIS and the file to delete sits in C:\Temp\reports, both on the same machine. The relevant code is: Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile "killme.txt", true
Ned, Try changing the callout of FSO. From: Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile "killme.txt", true To: Set fso = **Server.**CreateObject("Scripting.FileSystemObject") fso.DeleteFile "**C:\Temp\reports\**killme.txt", true HTH Tony
-
Ned, Try changing the callout of FSO. From: Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile "killme.txt", true To: Set fso = **Server.**CreateObject("Scripting.FileSystemObject") fso.DeleteFile "**C:\Temp\reports\**killme.txt", true HTH Tony