关于FSO
Dim Fso Dim File1
Private Sub Command1_Click() '点击按钮则删除
Fso.DeleteFile (File1)
End Sub
Private Sub Form_Load()
Dim Fso As New filesystemobject
Set File1 = Fso.GetFile("C:\Documents and Settings\Administrator\桌面\fd.rar")
End Sub
上面代码运行的时候为什么“Dim Fso As New filesystemobject”提示“用户类型未定义” 我换成“Set Fso = CreateObject("scripting.filesystemobject")”后就OK了
问题:
1.请问这两个定义不的结果不一样吗?
2.如果不一样那区别再那里?