cinnamoneast
Programmer
I am using the FileSystemObject to delete a file from the server. I keep getting the "permission denied" error. I have checked the security on the folder and the IUSER account has full control. Also I have IIS set to use IUSER account with password syncronization. I have tried it on several computers and get the same error so I figure I have to be missing something. Here is the piece of code and the *** indicate where it says it is breaking.
if len(fName_test) > 0 then
objMail.AttachFile (fName)
'Use FSO to get file
Set fso = CreateObject"Scripting.FileSystemObject"
Set fil = fso.GetFile(fName)
'Delete file from D drive on server
fil.delete **** BREAKS HERE
end if
Thanks for your help
if len(fName_test) > 0 then
objMail.AttachFile (fName)
'Use FSO to get file
Set fso = CreateObject"Scripting.FileSystemObject"
Set fil = fso.GetFile(fName)
'Delete file from D drive on server
fil.delete **** BREAKS HERE
end if
Thanks for your help