Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
johnan
Creator III
Creator III

Relaoding from BAT file

Hi,

I have a issue, when i reload a application from a Batfile and windows Scheduler, the application will not closing.

The Scheduler is running and QV.exe are active in task manager.

When i open in QV and reload it, its working fine.
Any ideas?

12 Replies
mongolu
Creator
Creator

you could try the VBS way.

put this lines into a file with the extension .VBS (a must) and then double-qlik it.

SET QV = CreateObject("QlikTech.QlikView")
QV.OpenDoc ("E:\xxx.qvw")

QV.ActiveDocument.Reload()
QV.ActiveDocument.Save

QV.QUIT
SET QV = NOTHING

johnan
Creator III
Creator III
Author

Okay, this work fine. And i can call the VBS file with Win Scheduler?

mongolu
Creator
Creator

yes. you can.

but take that in consideration: using this method (a vbs script), the qv doc will open in the currently qv process and reloads, save, and then quits the entire process.

more explicitily: if you open a qv doc, let's say SALES.qvw. and you work in it. and the sched runs. after that, it quits. and so your SALES.qvw and the work you've done by that moment.

this is something i couldn't bypass.