Results 1 to 3 of 3

Thread: Runtime error 5

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2003
    Location
    Florida
    Posts
    104

    Runtime error 5

    Can anyone tell me why this code would cause a Runtime error 5 on some PCs, but not on all. One system running XP HOME gave me this error, another system running ME ran fine and my system XP PRO also ran fine.


    Private Sub Command2_Click()

    'Save password START
    Open "C:\Program Files\test\password.ini" For Output As #1
    Print #1, Text1.Text
    Close #1
    'Save password END

    Dim password As String
    password = Text1.Text

    ' Open Explorer START

    Shell ("C:\Program Files\Internet Explorer\IEXPLORE.EXE http://yahoo.com"), vbMaximizedFocus

    ' Open Explorer END

    'Enable Continue Button
    CommandButton1.Enabled = True

    End Sub

    Thanks

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    That is VB6 code if I am not mistaken, you should ask this question in the General forum.

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    They don't have the VB6 Runtime files installed, or perhaps depending on the OS, the program might need to be run under Administrator rights, or perhaps they don't have IE installed at the location you seem to think.... (or if its even possible these days, not have IE installed at all).

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