CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2001
    Posts
    4

    Runtime Error # 70

    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


  2. #2
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: Runtime Error # 70

    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





  3. #3
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167

    Re: Runtime Error # 70

    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

    Good Luck,
    -Cool Bizs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured