我正在尝试脚本进行文件传输,当我手动点击脚本时它工作正常。但是当我尝试运行作为调度任务时我收到错误“Active component cant create obj”,我不知道是什么我的剧本错了吗? 供您参考,我的脚本如下。
Dim Mysite
Set MySite = CreateObject("CuteFTPPro.TEConnection")
Set fso = CreateObject("Scripting.FileSystemObject")
MySite.Protocol = "FTP"
MySite.Host = "www.domainname.com"
MySite.Login = "xxxxx"
MySite.Password = "xxx"
MySite.UseProxy = "BOTH"
MySite.Connect
MySite.UploadAsync "C:\sampletest\abc.flv"
MySite.RemoteFolder = "/test/abc.flv"
MySite.Disconnect
MySite.Close
仅供参考我的机器是Windows 2008 64位系统
答案 0 :(得分:0)
在大多数情况下,由以下之一提出的问题:
User does not have proper permission to run a scheduler
User does not have proper access to the folders/files listed
Application you are using running under different permission set for logged in user and system account which is used by Task Scheduler.
OS is not recognizing what application version it have to execute 32 or 64 bit when attempt to execute scheduled task.
仔细研究这些情况,进行调整,它会起作用。