Submitted by Muadib on 2018/01/04 18:37
Hi everyone, Happy new year!
 
I was trying to open file with vb script on InfoQube:
 
function runwhencheck()
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim exeName
Dim statusCode
exeName = "D:\Inbox\msg.ahk"                                                           
statusCode = WshShell.Run (exeName, 0, true)

end function
Works if i run it trough .vbs file on windows, but if i call function using InfoQube editor i get this error:
 
"Error 424 Object Required: WS Script "
 
Is there any other way to run file?
 
Thanks For Help! :)

Comments

Try Set WshShell = CreateObject("WScript.Shell")  instead
 
Pierre_Admin
IQ Designer
 

Muadib

2018/01/05 14:32

In reply to by Pierre_Admin

Thanks! Works perfectly.