[求助]用FSO对象创建文件
我运行网上一些非常普遍的FSO例子,可是总会在SET语句那行被提示:"编译错误: 语法错误"
比如用FSO创建文件夹的例子:
Option Explicit
Dim fsoTest As New FileSystemObject
Dim folder1 As Folder
并且分别在三个命令按钮的click事件输入以Sample Text下代码:
Private Sub CmdCreate_Click()
' 获取 Folder 对象。
Set folder1 = fsoTest.GetFolder(“C:")
'创建文件夹
fsoTest.CreateFolder (“C:\Test")
MsgBox “folder C:\Test has created"
End Sub
我已经引用了Microsoft scripting runtime库,请教高手是为什么?