以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  关于创建子文件夹  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=185502)

--  作者:ygg8310
--  发布时间:2023/2/26 16:04:00
--  关于创建子文件夹
 
                If FileSys.DirectoryExists(ProjectPath & "Attachments" ) Then \'如果目录C:\\MyFolder存在
Else
    FileSys.CreateDirectory(ProjectPath & "Attachments" )

End If
dim a as string = "张三"
dim b as string = "工号"
dim c as string = (a & b)
   If FileSys.DirectoryExists(ProjectPath & "Attachments" / c) Then \'如果目录C:\\MyFolder存在
Else
    FileSys.CreateDirectory(ProjectPath & "Attachments" / c)

End If
这个为啥会出错?该如何修改?

--  作者:有点蓝
--  发布时间:2023/2/26 20:18:00
--  
FileSys.DirectoryExists(ProjectPath & "Attachments/" & c)