Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
svsudhakar
Creator
Creator

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
NareshGuntur
Partner - Specialist
Partner - Specialist

Hi Sudhakar,

Try using the below code.

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



Best Regards,

Naresh

Anonymous
Not applicable

Use Triggers,

open external programs ,

in Action tab..

Not applicable

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
Creator
Creator
Author

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

Hello ,

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

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

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Miguel_Angel_Baeyens

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

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
Creator
Creator
Author

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