亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

VBS遞歸創(chuàng)建多級目錄文件夾的方法

 更新時間:2019年10月20日 21:52:22   作者:piaoyunlive  
這篇文章主要介紹了VBS遞歸創(chuàng)建多級目錄文件夾的方法,主要使用的是vbs fso的GetParentFolderName與CreateFolder函數(shù),需要的朋友可以參考下

核心代碼

CreateFolders "d:\jb51test\1\2\3\4\5" 

Function CreateFolders(path)
	Set fso = CreateObject("scripting.filesystemobject")
	CreateFolderEx fso,path
	set fso = Nothing
End Function

Function CreateFolderEx(fso,path)
	If fso.FolderExists(path) Then 
		Exit Function
	End If
	If Not fso.FolderExists(fso.GetParentFolderName(path)) Then
		CreateFolderEx fso,fso.GetParentFolderName(path)
	End If
	fso.CreateFolder(path)
End Function

經(jīng)過測試運(yùn)行沒問題

文中的兩個函數(shù)鏈接CreateFolder 方法GetParentFolderName 方法。

相關(guān)文章

最新評論