练习中。。。- Sub CreateFolder(F)
- Arr = Array(F,F & "\项目一",F & "\项目二",F & "\项目三",F & _
- "\项目四",F & "\项目五",F & "\项目六")
- For i = 0 To UBound(Arr)
- If Not FSO.FolderExists(Arr(i)) Then FSO.CreateFolder(Arr(i))
- Next
- End Sub
- Set FSO = CreateObject("Scripting.FileSystemObject")
- YY = Right(Year(Date+7),4)
- MM = Right("0" & Month(Date+7),2)
- DD = Right("0" & Day(Date+7),2)
- CreateFolder YY & "-" & MM & "-" & DD & "工作"
- CreateFolder YY & "-" & MM & "-" & DD & "备份"
- MsgBox "OK"
复制代码
|