I'm trying to make a couple of files. One that sees if another file exists. If it does, a link will appear to another file that will delete this file. I have everything working on my home pc, but when I try it on the websever, it says that I don't have permission.
I am assuming that is because the file is in a password protected folder. I was wondering if there was a way to supply this username and password in my
asp file? Or if I change my code somehow it will delete the file?
Code:
set fs = CreateObject("Scripting.FileSystemObject")
fs.DeleteFile "C:\websites\mysite\protectedfolder\file.ext", true