Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
manojkulkarni
Partner - Specialist II
Partner - Specialist II

Execute Batch file using Macro

Hi All,

How to execute a batch or vbs file from macro ? I need to call a batch file on click event of button in qlikview application.

Thanks in Advance

4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Microsft example:

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run "%windir%\notepad " & WScript.ScriptFullName

Set macro to run using module security to "System Access" and module local security to "Allow System Access"

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
manojkulkarni
Partner - Specialist II
Partner - Specialist II
Author

where is the option to specify batch file ?

manojkulkarni
Partner - Specialist II
Partner - Specialist II
Author

does anybody have solution for executing batch files using macro from Server side ?

marcus_sommer

This for example worked:

Execute cmd.exe /C "D:\YourFolder\DataSynchronisation.bat";

- Marcus