Set objfso = CreateObject("scripting.filesystemobject")
strFolderPath = Trim(InputBox("Path"))
If Not objfso.FolderExists(strFolderPath) = True Then
path = MsgBox("路径不存在,是否创建",vbYesNo)
If path = 6 Then objfso.CreateFolder(strFolderPath)
Else '在这我想返回执行第二行语句,该怎么办啊??作者: marco 时间: 2007-8-9 23:11
第二句前面加个while 语句
while path <> 6
strFolderPath = Trim(InputBox("Path"))
If Not objfso.FolderExists(strFolderPath) = True Then
path = MsgBox("路径不存在,是否创建",vbYesNo)
If path = 6 Then objfso.CreateFolder(strFolderPath)
Else '在这我想返回执行第二行语句,该怎么办啊??
wend