Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro to run a command?

Hello Experts,

I would be thankful to anyone who can help me with a Macro which will open a .VBS file and run it just like a batch file.

I have a windows NT Command script file which will run a .VBS file when executed. Can i have a macro in the QV which helps me run this .VBS file with a click of button without requiring to use the command script file??

I have something like this in my windows NT Command script file

c:\windows\system32\cscript EDXTrigger.vbs /t:"Publisher Test" /p:"password" /u:"http://loncsasdre24:4720/qtxs.asmx

Thanks

1 Reply
Not applicable
Author

Hi,

this is taken from the apiguide.qvw:

rem ** Example 1 **

set app= ActiveDocument.GetApplication

app.Launch "C:\Program Files\Winword.exe","C:\Myfiles\abc.doc"

You can adapt this to your case.

I hope this help you.

Stefano.