Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Highlighted

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?

Tags (3)
3 Replies

Re: Stop Task from Command Line (cmd.exe)

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

MVP & Luminary
MVP & Luminary

Re: Stop Task from Command Line (cmd.exe)

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

Re: Stop Task from Command Line (cmd.exe)

Thank you, Marcus.  I will look into this.