Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
james
Creator III
Creator III

External Command for VBS?

All, has anyone got a VBS script to run through an external command?

I have a VBS file that I want to run through QMC under the external programs, yet it always returns this inst a valid win32 file.

I have tried creating a BAT file that is called up that than opens up the VBS file, but that apears to not work as it just runs without ever finishing

Any ideas?

Thanks

6 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Yes, I run them like this

cscript myfile.vbs

No problems.

-Rob

james
Creator III
Creator III
Author

Rob, now im starting to wonder if its my script. If i run the VBS on my own, t works fine. If i use QMC, it just runs and never finishes or at least says it finished

serverPath = "\\test\Fin"
set Qv = CreateObject("QlikTech.QlikView")
Set docObj = Qv.OpenDocEx (serverPath & "James.qvw",0,false)
docobj.Reload
docObj.CloseDoc
Qv.Quit

Any ideas

blaise
Partner - Specialist
Partner - Specialist

is the script running with the same user as you do?

It might be that you dont, and when Qv will ask the "script-user" for licence key info, hence the script will never finish.

james
Creator III
Creator III
Author

Im not follwing? What do you mean by license key info and script

Its the publisher job

blaise
Partner - Specialist
Partner - Specialist

Ok, its publisher that runs the job (i guess that Publisher has no problem running other "non vbs" tasks, like a reload of the James.qvw file.).

What i meant was that if you had some sort of vbs triggered by a control on a webpage the vbs script will mostly be run by the netservice account (or what ever the heck it's called :). And this user has most likely not been using Qlikview. So, when a user opens qlikview first time he is given the choise of running as analyzer, evaluation or enter license key.

Anonymous
Not applicable

I think Blaise is right on the money. Easy way to check is to log on to the machine using the account you use to run the QV services and start QlikView manually to see if you get stuck on the registration popup that appears the first time running the standalone.