
DArora.20171104044441 asked a question.
Not able to delete directory with read-only files
Hi,
I am trying to delete a directory using InstallScript during 'Modify' but this directory contains read-only files. As such, DeleteDir is failing on it.
Is there a way to forcibly delete this directory?
One way could be to loop over all the files in this directory, change their attribute to normal and then delete the directory. But I am not getting how to loop over these files. Can anyone please shed some light on this?
Any help is greatly appreciated :-)
Thanks
Hope this helps!
Tim