Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Leverage your QlikView investment to modernize BI – see how! Join Group
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Macro to run exe

Hello,

I am trying to run an executable from a QlikView macro but the macro stops at the run line with no error message. My Requested Module Security is set to System Access and the Current Local Security is set to Allow System Access.

Here is my code


Set shell = CreateObject("WScript.Shell")
shell.Run "C:\Program.exe"


Why does the macro just stop?

Thanks

1 Reply
Highlighted
Not applicable

Macro to run exe

I found my error.

the program I was trying to run was in a folder with spaces so more like


shell.run "C:\a folder\program.exe"


so I needed to add quotes around the file path.

solution


shell.run chr(34) & "C:\a folder\program.exe" & chr(34)