0514-86177077
9:00-17:00(工作日)
創(chuàng)建文件夾。
object.CreateFolder(foldername)
object
必選項。應為 FileSystemObject 對象的名稱。
foldername
必選項。字符串表達式,指明要創(chuàng)建的文件夾。
如果指定的文件夾已經(jīng)存在,則會出現(xiàn)錯誤。
下面例子舉例說明如何使用 CreateFolder 方法:
Function CreateFolderDemo Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.CreateFolder("c:\New Folder") CreateFolderDemo = f.PathEnd Function
標簽:資陽 昌都 通遼 海北 韶關(guān) 滄州 阿里 咸寧
上一篇:VBS教程:fso方法-CreateTextFile 方法
下一篇:VBS教程:方法-CopyFolder 方法
Copyright ? 1999-2012 誠信 合法 規(guī)范的巨人網(wǎng)絡通訊始建于2005年
蘇ICP備15040257號-8