|
-
May 10th, 2003, 09:29 PM
#1
Thread Starter
Lively Member
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
-
May 10th, 2003, 10:21 PM
#2
PowerPoster
That is VB6 code if I am not mistaken, you should ask this question in the General forum.
-
May 12th, 2003, 11:11 PM
#3
I wonder how many charact
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|