?
Solved

Vbscript to execute kix script

Posted on 2008-10-06
9
Medium Priority
?
1,490 Views
Last Modified: 2010-04-21
Is it possible to execute a kix script using vbscript. Im asking because we currently use a lot of kix scripts. Id like to be able to write a vbscript to execute various kix scripts. If it is possible how would it be done?
0
Comment
Question by:k3eper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 33

Expert Comment

by:MikeKane
ID: 22650541
For a kix script, you need to have the following available:
kix32.exe

If you are running this from 95 or 98, you will also need:
kx95.dll
kx16.dll
kx32.dll


Once those are available, you can execute a kix script from vbs by calling the executable like this:
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")

' open maximized and wait
WSHShell.Run "kix32 script.kix", 3, true
' open minimized and wait
WSHShell.Run "kix32 script.kix", 2, true
' open normal and don't wait
WSHShell.Run "kix32 script.kix", 1, false

Set WSHShell = Nothing
WScript.Quit(0)


You can add IF...THEN's or whatever else your logon script would need....
0
 

Author Comment

by:k3eper
ID: 22652692
its not a logon script its a software install script for some inhouse software, it is located on a network share and kix32 is availble. for instance if the script is located here \\serpt\vert_4\install_v5.kix how would i execute that and a few more in a vbs?
0
 
LVL 33

Expert Comment

by:MikeKane
ID: 22653213
You can specify the path in the .run command   like so:
WSHShell.Run "\\server\share\kix32 \\serpt\vert_4\install_v5.kix", 3, true


You can add as many as you like in the script.  




0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:k3eper
ID: 22653234
ok great ill have a play with it (i have no knowledge of scripting mind you i started learning yesterday lol) Thank you
0
 

Author Comment

by:k3eper
ID: 22653342
What is the point of the numbers and the true false for example

' open maximized and wait
WSHShell.Run "kix32 script.kix", 3, true
' open minimized and wait
WSHShell.Run "kix32 script.kix", 2, true
' open normal and don't wait
WSHShell.Run "kix32 script.kix", 1, false

Sorry for my ignorance. Will the kix32 file need to be in the same location as the kix script or can the kix be on the local machine that is having the script executed on?
0
 
LVL 33

Accepted Solution

by:
MikeKane earned 200 total points
ID: 22654567
The numbers refer to how to open the shell for the external app.   3 = maximized window, 2  =minimized, 1 = normal.   True or False refers to whether or not the script will wait for that EXE to finish before continuing with the next commands....  

Each line has a comment in front of it explaining the example.
0
 

Author Comment

by:k3eper
ID: 22658797
Aar great thank you so much. I have got it working now but im once again stuck, trying to copy a file from one network destination to another. Do i need to use FSO for this?
0
 

Author Closing Comment

by:k3eper
ID: 31503427
Thank for your help
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question