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

Announcements
We are aware of an issue with the Product Downloads page and looking into it.
cancel
Showing results for 
Search instead for 
Did you mean: 
Nicole-Smith
MVP
MVP

Stop Task from Command Line (cmd.exe)

I've been able to successfully start my tasks in a QlikView document using command line and an execute command like the following:

EXECUTE cmd.exe /c \\$(vTaskServer)\QlikView\SourceDocuments\EDX\QMSEDX -task=$(vTaskName) -qms=$(vTaskQMS) -password=;

I'm running into some cases where I would like the ability to stop tasks in the same way.  Does anyone have any ideas?

Labels (1)
3 Replies
Nicole-Smith
MVP
MVP
Author

Anybody?  I still haven't been able to figure this out.

marcus_sommer
MVP
MVP

Maybe you could adapt the approach from the attached vbs-batches which could be also executed from a qlikview-task like this example:

SET vCSCRIPT = 'c:\windows\system32\cscript.exe';

EXECUTE $(vCSCRIPT) "D:\OpenProtectExcelAndSaveUnprotect.vbs";

- Marcus

Nicole-Smith
MVP
MVP
Author

Thank you, Marcus.  I will look into this.