Set p_ofso = CreateObject("Scripting.FileSystemObject") '创建文件系统对象
报自动化错误(错误 440)
引用了
Microsoft script control 1.0
Microsoft scripting runtime
不行,大家来指正!
...全文
90924打赏收藏
FileSystemObject用的是哪一个引用?
Set p_ofso = CreateObject("Scripting.FileSystemObject") '创建文件系统对象 报自动化错误(错误 440) 引用了 Microsoft script control 1.0 Microsoft scripting runtime 不行,大家来指正!
各位辛苦了!以下为出错代码
Function file_copy() As Integer
Dim p_ofso As New FileSystemObject
Dim remote_dir As String
Set p_ofso = CreateObject("Scripting.FileSystemObject") '<-创建文件系统对象,执行到这一句报错,自动化错误
p_ofso.CopyFile remote_dir, App.Path, True
End Function