Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sivarajs
Specialist II
Specialist II

Running a Batch file through Publisher

Hi,

I am trying to run batch file in publisher

I have tried using Supporting tasks in QEMC but its remains in running state

See the attached sample..

Sivaraj S

16 Replies
Not applicable

hi, Is that bat file is working whn u r running directly.

sivarajs
Specialist II
Specialist II
Author

yes its working

Bill_Britt
Former Employee
Former Employee

Can you paste the continue of the Batch file here? Sometimes the reason it continues to run is because publisher can't tell that the task has finished. Like if you use this to open notepad.exe. Publisher can't tell when notepad has closed so it will contiue to run.

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
Not applicable

Hi,

I had the very same problem.

I solved it by running the batch file from the the script of a qlikview file, like this:

LET vExeLine = 'BatchFile' ;

execute cmd /c $(vExeLine);

Hope this helps

sivarajs
Specialist II
Specialist II
Author

Hi Bill,

i have defined my batch file like..

"C:\Program Files\QlikView\Qv.exe" /l "D:\AM_Scheduled_Report\AM_Daily_Mailer.qvw"

sivaraj s

Bill_Britt
Former Employee
Former Employee

You are running an EXE and publisher can't tell when this has finished. Search the QlikView Server reference manual for Batch mode. This should work better for you.

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
sivarajs
Specialist II
Specialist II
Author

Hi YO,

Can u Attach the sample, i am facing some syntax issue

Sivaraj S

Not applicable

Hi Bill,

Try this

"C:\Program Files\QlikView\qv.exe"/nosecurity /r "filepath\filename.qvw" file will be reloaded

Bill_Britt
Former Employee
Former Employee

Sampathpleasure1,

Your example is not the same as running a batch reload in publisher.

Bill

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.