Deleting files automatically

R

Raymondo

I would like to be able to automatically delete a file from the fpdb folder -
I have set all the permissions to run scripts and files etc but using the
following code

<%
dim fs,f,s
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("/fpdb/xxxxxx.xls")
f.Delete(true)
set f=nothing
set fs=nothing
set s=nothing
%>

but get the following error

FileSystemObject error '80040401' Permission Denied

any ideas anyone?
 
W

Wayne-I-M

"when" do you want to delete the file ?

On load - on click - on close - etc

How will you send the event (from excel - for an excel file - from access,
from frontpage)

etc

PS - you can do this V simply from an access form (if you have permisions
for the folder drive)
 
T

Thomas A. Rowe

Have you contacted your web host regarding having FSO permissions that would allow the delete
command?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
R

Raymondo

Thanks Wayne, I wish it to run on page load. The permissions are the ones
that Thomas refers?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top