怎么让VBS运行后在指定的路径创建一个文件夹B然
展开全部
on error resume next
set objFSO=CreateObject("Scripting.FileSystemObject")
objFso.createfolder("C:\123")
Randomize
d=Int(Rnd*10+1)
for i=1 to d
Randomize
name = replace(" " & time() , ":",".") & Int(Rnd*1000+1)
objFso.createfolder("C:\123\"&name)
next
msgbox "创建完毕!"
set objFSO=CreateObject("Scripting.FileSystemObject")
objFso.createfolder("C:\123")
Randomize
d=Int(Rnd*10+1)
for i=1 to d
Randomize
name = replace(" " & time() , ":",".") & Int(Rnd*1000+1)
objFso.createfolder("C:\123\"&name)
next
msgbox "创建完毕!"
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询