您的位置:首页 > 编程语言 > VB

vb.net如何打开指定文件

2007-07-07 10:08 453 查看
Imports System.IO
Public Class frmOpenHelpFiles
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim str As String = "D:\my files\教案\电子书\高效能人士的七个习惯.chm" '文件夹的路径 可使用相对路径实现
If File.Exists(str) Then
System.Diagnostics.Process.Start(str)
Else
MsgBox("sorry ,the file is not exists!")
End If
End Sub
End Class
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: