vb中如何再当前路径下创建子目录

来源:百度知道 编辑:UC知道 时间:2024/06/13 23:42:49

MdDir app.path &"\你要的文件夹名"

建议在建立前使用dir()函数确定文件夹是否存在

>>代码 if Dir(app.path &"\你要的文件夹名")<>"" then '确定是否存在
MdDir app.path &"\你要的文件夹名" '不存在
else
msgbox "己存在",0,"错误" '存在
endif

mddir app.path &"\temp"

建立temp文件夹

mddir app.path &"\wenjianjia"