Why can’t I Shell a link?

Tags:
Visual Basic 6
Visual Basic program
I'm trying to create a program in Visual Basic 6.0 that can open links at the same time at one click of a button. My code looks like this: Private Sub OK_Click() Dim i As Integer Dim FileName As String For i = 0 To (File1(0).ListCount - 1) If (File1(0).Selected(i)) Then Shell (File1(0).Selected(i)) End If Next End Sub When I've marked a link in my FileListBox and press ok, it just says "Runtime Error 53: File not found", but my link is in the folder! What am I doing wrong?

Software/Hardware used:
Visuan Basic 6.0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following