为了使工作简化,本人用VB写的一个批量创建文件夹的小软件
vb吧
全部回复
仅看楼主
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 1
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 2
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 3
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 4
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 5
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 6
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 7
level 5
DavidX_Wong 楼主

批量创建文件夹 VB源码
2010年07月04日 12点07分 8
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 9
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 10
level 6

2010年07月04日 12点07分 11
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 12
level 5
DavidX_Wong 楼主
2010年07月04日 12点07分 13
level 10
直接贴源码嘛。图片
对着打多累人。哈哈哈。
我用不着。不知道用来干什么用。。这功能我用不着。
2010年07月04日 16点07分 14
level 6
同意楼上的
2010年07月04日 16点07分 15
level 6
'以下代码可以建立多级文件夹:
Option Explicit
Private Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal lpPath As String) As Long
'创建指定的目录(可以是多级目录)
Private Function CreateDirectory(ByVal sDirectory As String) As Boolean
'创建指定的目录(可以是多级目录),sDirectory:要创建的文件夹
On Error GoTo ErrHandle
Dim lngResult As Long
sDirectory = checkpath(sDirectory)
lngResult = MakeSureDirectoryPathExists(sDirectory)
CreateDirectory = IIf(lngResult = 0, False, True)
ErrHandle:
If Err <> 0 Then
CreateDirectory = False
End If
End Function
Private Function checkpath(ByVal sPath As String) As String
If Right$(sPath, 1) = "\" Then
checkpath = sPath
Else
checkpath = sPath & "\"
End If
End Function
Private Sub Command1_Click()
If Dir(App.Path & "\123\456") = "" Then CreateDirectory App.Path & "\123\456" '如果文件夹不存在,就创建
End Sub
2010年07月04日 16点07分 16
level 6
这代码多简洁方便,看来楼主的代码只能自己用了!
2010年07月04日 16点07分 17
吧务
level 13
[臭美]你编程代码都不缩进的吗,如果让你写1万行的程序,看着都眼花,BUG绝对超多
2010年07月05日 02点07分 18
level 7
生成的bat 你想复制到哪运行都可以...
2010年07月07日 06点07分 20
1