Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can't run .bat file with QMC > Supporting Tasks > External Program

Hi,

I'm trying to automate table to csv -export on reload. I've figured out that QMC automation doesn't handle the document events properly, and I need to do this from the command line, eg. Qv.exe /R xxx.qvw.

For some reason though, I can't get the Supporting Tasks > External Program task to work properly.

At the moment I have a simple .bat:

REM ... my real load ....

ECHO "Test"

EXIT

I have configured the external task with this parameter:

Command line statement: cmd "c:\reload.bat"

When I start the task, it just gets stuck on "Running" status, and never completing.

What should I set as the "command line statement" parameter?

1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

If you change the name into reload.cmd, you can just enter the following into Command line statement:

  C:\Reload.cmd

The shell will be started automatically.

This works for us. The only thing we have to take care of are spaces in path names. In that case, put the path between double quotes.

Peter

View solution in original post

2 Replies
danielrozental
Master II
Master II

I believe you should use cmd.exe /C so the command line interface will close after performing the requested command.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

If you change the name into reload.cmd, you can just enter the following into Command line statement:

  C:\Reload.cmd

The shell will be started automatically.

This works for us. The only thing we have to take care of are spaces in path names. In that case, put the path between double quotes.

Peter