Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to kill file when accessed simultaneously

Status
Not open for further replies.

level1

Programmer
Apr 16, 2002
60
GB
Hello people.


Im doing a WEB type file manager, using the file system object, IIS, ASP and SQL97.

All functions are working fine. Although the system can also handle HTML files.

The problem i have is that every time im trying to Delete an HTML file that is been accessed by other users at same time i get the following error:

Microsoft VBScript runtime error '800a0046'
Permission denied

/pdh/concept_admin2.asp, line 53

line 53 is the delete command as follows:

fs.DeleteFile request("fullpathurl" & filedetails) & file_conv,true

I need to be able to delete a file no matter if somebody else is vewing it.

Also you get the following error if you try do delete it manualy:

There is a sharing violation the file may be in use.

So what im thinking is how is this possible when you use FTP (to delete files no matter if somebody else is accessing them?) and how can i make my thing to work?

Is it a coding issue???
is it a IIS issue?
Anybody can help please?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top