Access denied error

HI Am creating folder based on a field value dynamically and extracting files from notes doc and doing ftp, after ftp killing the files but keeping the folder.

am using below kill command to kill file

Kill extractpath+""+filenames(j)

before cretaing folder am chekcing whether folder exits or not . my code works fine except one doc that doc has simple word and pdf files . it create folder and done ftp too but next time my agent runs it thorugh error in the below code

fileName$ = Dir$(pathName$, 0)

any diea why, i am unbale to delete the folder too manulaly but when i restart server am able to remove folder. please suggest me

thanks

soma

Subject: access denied error

Sounds to me that it could be a few different things.1) You don’t have delete access to the folder on the server.

  1. The file is still open, so you can’t deleted it.

Add some error handling and display the error message and error code you are getting, that way you can figure out whatthe problem is.

Subject: RE: access denied error

HI Thanks for your reply, the id has deletion rights i am running the agent for more than 10 db and daily it process around 5000 docs.

If the file is still open it should have throughed the error while killing file itself.

It through error next time while accessing the folder only.