Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
svsudhakar
Contributor

Calling the bat file through Qv


Hi ,

Is it Possible to call the bat file from qvw. if it is possible please let me know the process or provide me an sample app.

Thanks in advance

Regards,

Sudhakar

8 Replies
Partner
Partner

Re: Calling the bat file through Qv

Hi Sudhakar,

Try using the below code.

EXECUTE cmd.exe /c "D:\Project\qv.bat"



Best Regards,

Naresh

gupta_n8
Valued Contributor II

Re: Calling the bat file through Qv

Use Triggers,

open external programs ,

in Action tab..

Not applicable

Re: Calling the bat file through Qv

Hi Sudhakar,

You can add following action through either creating a button or through Trigger (as per your requirement)

Action Type -> External : Action ->Open URL

& Set URL of the file path where the .BAT is saved.

make sure that, .BAT file must be given an access to the user who want to access it through QlikView.

-Regards,

Kiran

svsudhakar
Contributor

Re: Calling the bat file through Qv

Hi ,

Thanks for u r reply ..

its working fine in my local system but when I published in server getting failed to Launch Error.

Please suggest on this..

vikasmahajan
Esteemed Contributor

Re: Calling the bat file through Qv

Hello ,

Batch File will not work in Web Browser !!!!

You need to schedule through windows schedular to execute the same.

Vikas

Re: Calling the bat file through Qv

Make sure that in the QMC > System > Setup > QlikView Servers you have checked "Allow Unsafe Macro Execution" on server and in the script dialog editor Settings tab, allow external commands.

Miguel

Not applicable

Re: Calling the bat file through Qv

Hi Sudhakar,

Make sure the path you have specified is correct. Since on server you have to give Server path.

Eg.

If your server Address is 172.16.0.255 & Batch file is saved in E:\QlikView\ProjectName\Batch\Sample.bat

Then you have to write in Open URL = \\172.16.0.255\QlikView\ProjectName\Batch\Sample.bat

& again, this folder should be given access to the user who want to access it through QlikView.

-Regards,

Kiran

svsudhakar
Contributor

Re: Calling the bat file through Qv

Hi Kiran,

I have modified path as u  suggested.but still I am getting the same error.

Failed to launch the application.Please suggest

regards

sudhakar