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: 
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
Not applicable
Author

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)