11 Replies Latest reply: Sep 25, 2013 6:51 AM by Антон Сухарев RSS

    .vbs not working when not logged in

      I have a .VBS script to launch a QlikView file and do some stuff with it.


      Everything works great when I'm logged into my account, but when I run the vbs as a scheduled task, it doesn't work.


      The script looks like this:

      Line 1: Set Qv = CreateObject("QlikTech.QlikView")

      Line 2: wscript.sleep 2000

      Line 3: Set docObj = Qv.OpenDoc(qvPath, "", "")


      I have narrowed it down to line 1 being the point of error. The script exists when trying to execute line 1.


      I have made sure that the script is run by the same account, but I must be doing something wrong.


      Any help is appreciated.


      My only requirement for getting this to work, is that I can acces the QV file as an object through the dobObj variable, as the rest of my script depends on it.