Click to See Complete Forum and Search --> : Runtime Error # 70


Ravi chander G
May 10th, 2001, 06:18 AM
Hello Friends,

I have a program line
kill (path) & "test.bmp"
which gives a runtime error 70, what could be the reason and how to over come it.

I have ensured that file exist in the directory.
if I create an EXE of the same I get either Runtime error 70 or Dr.Watson error.

regards,
Ravi

TH1
May 10th, 2001, 06:44 AM
It could be because the file is read only try setting it's attributes to normal before you kill it

SetAttr (path) & "test.bmp",vbNormal

coolbiz
May 10th, 2001, 07:58 AM
Permission denied (Error 70) is the error description. Just ensure that you have access to delete that file or the file is not locked by any other processes. Another thing, why 'kill (path) & "test.bmp"'? and not 'kill path & "test.bmp"'?

-Cool Bizs