Olgun_Onur_Ozmen

Microsoft VBScript runtime error: ActiveX component can't create object

Discussion created by Olgun_Onur_Ozmen on May 26, 2017
Latest reply on Jun 19, 2017 by Olgun_Onur_Ozmen
hi all,
 
i have a problem about execute vbs file on automic. I tried cscript and wscript tool with (WSH)

C:\Windows\SysWOW64\cscript.exe C:\Users\olgun.ozmen\Desktop\scritps\samplecppp.vbs

actually running on windows cmd is succesfully done but same script run on Automic , vbs file can't run. The error is ( Microsoft VBScript runtime error: ActiveX component can't create object)

anyone knows how can run this vbs file on automic ? any suggestion about this runtime error ?

Best.

===========================================================================================
samplecppp.vbs inside 
===========================================================================================
' VBS Script Generated by CuteFTP (TM) macro recorder.
' Generated at: 24-May-17 10:58:16.

' Create TEConnection object
Set MySite = CreateObject("CuteFTPPro.TEConnection")
' Rename local file
MySite.LocalRename "C:\Users\olgun.ozmen\Desktop\deneme.txt", "C:\Users\olgun.ozmen\Desktop\vakifbank\deneme.txt"
===========================================================================================



===========================================================================================
job report 
===========================================================================================

c:\>C:\Automic\Agents\Windows\bin\UCXJWX6M.EXE JNR=0001006119 MNR=0010 PNR=2300 IPA=192.168.238.1 TYP=S TXT="        Job started" 
Program 'UC4 Job Messenger' version '12.0.1+build.632' started
UCMDJP: *********************************************************************
UCMDJP: ** JOB 0001006119 (ProcID:0000001016) START AT 26.05.2017/14:40:15 **
UCMDJP: **                                    UTC TIME 26.05.2017/11:40:15 **
UCMDJP: *********************************************************************
Connected with agent 'WIN01'
Program 'UC4 Job Messenger' version '12.0.1+build.632' terminated normally

c:\>C:\Windows\SysWOW64\cscript.exe C:\Users\olgun.ozmen\Desktop\scritps\samplecppp.vbs 
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Users\olgun.ozmen\Desktop\scritps\samplecppp.vbs(5, 1) Microsoft VBScript runtime error: ActiveX component can't create object: 'CuteFTPPro.TEConnection'


c:\>C:\Automic\Agents\Windows\bin\UCXJWX6M.EXE JNR=0001006119 MNR=0010 PNR=2300 IPA=192.168.238.1 TYP=E RET=00000000 TXT="        Job ended" 
Program 'UC4 Job Messenger' version '12.0.1+build.632' started
UCMDJP: *********************************************************************
UCMDJP: ** JOB 0001006119 (ProcID:0000001016) ENDED AT 26.05.2017/14:40:45 **
UCMDJP: **                                    UTC TIME 26.05.2017/11:40:45 **
UCMDJP: ** --------------------------------------------------------------- **
UCMDJP: **                                    USED:      0.000 CPU         **
UCMDJP: *********************************************************************
Connected with agent 'WIN01'
Program 'UC4 Job Messenger' version '12.0.1+build.632' terminated normally

c:\>GOTO JOBENDE 
===========================================================================================

Outcomes