T
TomT
Microsoft VBScript runtime error '800a0046'
Permission denied
This happens when I try and delete a file using :
<!-- asp -->
<%
deletefile = request.querystring("file")
set objfso = createobject("scripting.filesystemobject")
if objfso.fileexists (server.mappath("backup/" & deletefile)) then
objfso.deletefile(server.mappath("backup/" & deletefile))
<!-- asp -->
This has worked in the past, but not now..
I think I've screwed the permissions, but can't work out what.
The folder structure is:
TESTSITE
---> backup
---> images
In the testsite root is the asp pages
The backup folder holds backup files
Images holds .... Images !
I have set Administrators with Full Control, and IUSER with READ, WRITE,
READ, EXECUTE & LIST.
I have set for all the permissions to be passed to all files and folders
off the root of TestSite!! (I think !)
This is on Windows 2000 Server and Windows 2003 Server.
This worked on my old HardDisk, I cloned that and now running on a new disk
!
Any Advice ??
Thanks
Permission denied
This happens when I try and delete a file using :
<!-- asp -->
<%
deletefile = request.querystring("file")
set objfso = createobject("scripting.filesystemobject")
if objfso.fileexists (server.mappath("backup/" & deletefile)) then
objfso.deletefile(server.mappath("backup/" & deletefile))
<!-- asp -->
This has worked in the past, but not now..
I think I've screwed the permissions, but can't work out what.
The folder structure is:
TESTSITE
---> backup
---> images
In the testsite root is the asp pages
The backup folder holds backup files
Images holds .... Images !
I have set Administrators with Full Control, and IUSER with READ, WRITE,
READ, EXECUTE & LIST.
I have set for all the permissions to be passed to all files and folders
off the root of TestSite!! (I think !)
This is on Windows 2000 Server and Windows 2003 Server.
This worked on my old HardDisk, I cloned that and now running on a new disk
!
Any Advice ??
Thanks