怎么利用vb.net创建文件夹
2个回答
展开全部
'vb.net2008
Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim b_path As String
b_path = "d:\123"
If Directory.Exists(b_path) = True Then
MsgBox("已有 " & b_path & " 目录")
Else
Directory.CreateDirectory(b_path)
MsgBox("新创建 " & b_path & " 目录")
End If
End Sub
End Class
Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim b_path As String
b_path = "d:\123"
If Directory.Exists(b_path) = True Then
MsgBox("已有 " & b_path & " 目录")
Else
Directory.CreateDirectory(b_path)
MsgBox("新创建 " & b_path & " 目录")
End If
End Sub
End Class
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询