Help. I don't know why this isn't working. Please help. Thanks.
Code:
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myStreamWriter As StreamWriter
Dim rptPath As String
rptPath = "C:\Documents and Settings\Shen_Daniel\Desktop\test.html"
myStreamWriter = File.CreateText(rptPath)
myStreamWriter.WriteLine("Hello, World!")
Dim retVal
retVal = Shell("C:\Program Files\Internet Explorer\iexplore.exe " & _
rptPath, vbNormalFocus)
End Sub
End Class