PDA

View Full Version : Delete Files Action - Access Denied


sdornan
05-01-2007, 07:44 AM
I have a VBP Project I am using to deploy files to a web server, and I want to archive and then delete the cuurent files on the server prior to deploying the new files. I have been trying to use the "Delete Files" action but I get an access denied error when I try and use this. Now the wierd thing is if I use the delete folder action, this works just fine, but I don't want to do this as I only want to delete specific files from these folders.

The folders is defined as "%APP_SERVER1_IP%\%APP_SERVER1_ROOT%\wwwroot\applic ations\ufs" (Which translates to \\172.31.30.31\c$\inetpub\wwwroot\applications\ufs")
and in the "Include" the files are defined as *.cfm

Any help here would be greatly appreciated!!!

kinook
05-01-2007, 10:49 AM
Do you have 'Ensure file is writeable before deleting' checking on the Delete Files step?

sdornan
05-01-2007, 10:53 AM
This option is not checked

kinook
05-01-2007, 11:25 AM
The Delete Files action will not be able to delete read-only files without that option checked.