Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Friends ,
I want to close Qlikview Application using Batch file.
The /r parameter should serve the purpose.
It wil save and close the doc after load.
qv.exe /r
But for kill the process
"taskkill /f /im qv.exe"
A VBscript can act like a batch-file and here is how to do it from VBScript (put the code in a text-file and name it QuitQV.vbs for example):
Sub StartAndOpenDoc
Set QvDoc = GetObject("C:\ProgramData\QlikTech\QlikView Documentation\Automation\APIguide.qvw")
End
Sub AttachAndQuit
On Error Resume Next
Set Qv = GetObject( , "QlikTech.QlikView" )
If Err.Number <> 0 Then
MsgBox "Couldn't find QlikView running on this computer."
Else
DocName = Qv.ActiveDocument.Name
If Err.Number <> 0 Then
DocName = ""
End If
MsgBox "About to close QlikView (" & DocName & ") now..."
Qv.Quit
MsgBox "Closed QlikView just now."
End If
End Sub
MsgBox "Started"
CALL AttachAndQuit
MsgBox "Finished"