Automation server can't create object
-
guys, i use this code to get the the size of the file to upload but i get the exception "Automation server can't create object"
function GetFileSize(filespec) { var filesystemobject = new ActiveXObject("Scripting.FileSystemObject"); var file = filesystemobject.GetFile(filespec); return file.Size; }
please, Help me.
Help people,so poeple can help you.
-
guys, i use this code to get the the size of the file to upload but i get the exception "Automation server can't create object"
function GetFileSize(filespec) { var filesystemobject = new ActiveXObject("Scripting.FileSystemObject"); var file = filesystemobject.GetFile(filespec); return file.Size; }
please, Help me.
Help people,so poeple can help you.
-
Sir, I put my path and server on the RemoteText.wsf file, but this didnt work.
<package>
<job>
<script language="VBScript">
set oController = CreateObject("WSHController")
set oProcess = oController.CreateScript("D:\Work\RemoteFile.wsf", "localhost")
WScript.ConnectObject oProcess, "remote_"
oProcess.Execute
While oProcess.Status <> 2
WScript.Sleep 100
WEnd
WScript.Echo "Done"Sub remote_Error
Dim theError
Set theError = oProcess.Error
WScript.Echo "Error - Line: " & theError.Line & ", Char: " & theError.Character & vbCrLf & "Description: " & theError.Description
WScript.Quit -1
End Sub</script>
</job>
</package>Help people,so poeple can help you.
-
Sir, I put my path and server on the RemoteText.wsf file, but this didnt work.
<package>
<job>
<script language="VBScript">
set oController = CreateObject("WSHController")
set oProcess = oController.CreateScript("D:\Work\RemoteFile.wsf", "localhost")
WScript.ConnectObject oProcess, "remote_"
oProcess.Execute
While oProcess.Status <> 2
WScript.Sleep 100
WEnd
WScript.Echo "Done"Sub remote_Error
Dim theError
Set theError = oProcess.Error
WScript.Echo "Error - Line: " & theError.Line & ", Char: " & theError.Character & vbCrLf & "Description: " & theError.Description
WScript.Quit -1
End Sub</script>
</job>
</package>Help people,so poeple can help you.
-
ok, sir. is there any way to obtain the file size other than ActiveX(Since ActiveX is not supported on operating systems other than windows)
Help people,so poeple can help you.
-
ok, sir. is there any way to obtain the file size other than ActiveX(Since ActiveX is not supported on operating systems other than windows)
Help people,so poeple can help you.
-
guys, i use this code to get the the size of the file to upload but i get the exception "Automation server can't create object"
function GetFileSize(filespec) { var filesystemobject = new ActiveXObject("Scripting.FileSystemObject"); var file = filesystemobject.GetFile(filespec); return file.Size; }
please, Help me.
Help people,so poeple can help you.
Try this : 1. Go to internet explorer, Tools menu -> Internet options 2. Go to second tab -> Security 3. Enable ActiveX controls and plug ins options. Hope this helps. All the best.
-
Try this : 1. Go to internet explorer, Tools menu -> Internet options 2. Go to second tab -> Security 3. Enable ActiveX controls and plug ins options. Hope this helps. All the best.
thank you, sir; but i don't think that ActiveX works on other browsers (like Fire Fox) or Operating Systems (like Linux) so, i quit using ActiveX. 100 :rose:, man.
Help people,so poeple can help you.
-
thank you, sir; but i don't think that ActiveX works on other browsers (like Fire Fox) or Operating Systems (like Linux) so, i quit using ActiveX. 100 :rose:, man.
Help people,so poeple can help you.
-
Hi there, you got any workaround for this problem..? or any solution..?? i'm also facing the same problem.. :(
no; sir. :-D
Help people,so poeple can help you.