-
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
-
That is VB6 code if I am not mistaken, you should ask this question in the General forum.
-
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).