Page 1 of 1 1
Topic Options
#119396 - 2004-05-11 07:50 PM Launching a executable from KIX not working.
JustWondering Offline
Lurker

Registered: 2004-03-28
Posts: 1
Loc: Dallas, Texas
I need some ones assistance in understanding whats wrong with this. When I run it, it doesn't seem to do anything. In DEBUG it runs thru the script fine but again doesn't seem to do anything. Can I execute the DOS command this way with switches and all or do I need to do something else here. Your assistance is greatly appreciated. I have included two different variations on how I've tried to do it.
Code:


;*************************************************************************
; Script Name: CLIACCUP.KIX
; Author: Roger VanOrman
; Date: 5/5/2004
; Description: Update IBM Client Access on 2000 or NT machines from V4R4M0 or V4R5M0 to V5R2M0.
;*************************************************************************
;
USE N:"\\ServerName\DEPLOY"
;
$CAVer=GETFILEVERSION("C:\Progra~1\IBM\Client~1\cwbuisxe.exe","ProductVersion")
; Get the product version of the installed client access.
;
$OSVER=@PRODUCTTYPE
;Get the verison of the OS running.
;
$Filespec='N:\ISeries\setup.exe'
; Location of the installation executable file on the network
;
$NTV4R4M0='-s -SMS -f1N:\ISERIES\NTV4R4M0.iss'
$NTV4R5M0='-s -SMS -f1N:\ISERIES\NTV4R5M0.iss'
$2000V4R4M0='-s -SMS -f1N:\ISeries\V4R4M0.iss'
$2000V4R5M0='-s -SMS -f1N:\Iseries\V4R5M0.iss'
;Configurtaion file variables for configuration files.
;
; ** Do not modify code below this line ****************************************************************************************************
;
if Not $ConnType='LAN' and $NTtype<>'Server' ; fundamental conditions for proceeding (We don't touch servers, nor would we try this over a modem connection)
select
case $OSVER='Windows NT Workstation' and $CAVER='V4R4M0';Windows NT 4 with Client Access V4R4M0
RUN "N:\ISERIES\Setup.exe -s -SMS f1N:\Iseries\NTV4R4M0.iss"
case $OSVER='Windows NT Workstation' and $CAVER='V4R5M0';Windows NT 4 with Client Access V4R5M0
Run "N:\Iseries\setup.exe -s -SMS f1N:\Iseries\NTV4R5M0.iss"
case $OSVER='Windows 2000 Professional' and $CAVER='V4R4M0';Window 2000 with Client Access V4R4M0
Run "$Filespec,$2000V4R4M0"
case $OSVER='Windows 2000 Professional' and $CAVER='V4R5M0';Window 2000 with Client Access V4R5M0
RUN "$Filespec,$2000V4R5M0"
case 1 ; Client Access Version not supported by this script
MESSAGEBOX("Your version of client Access is not supported by this installation. Please contact the help desk at 210-648-8855","Client Access installation Message",4144,0)
endselect
endif
;
RETURN ; Must be last line of file. Do not remove this line



Edited by JustWondering (2004-05-11 08:10 PM)

Top
#119397 - 2004-05-11 08:19 PM Re: Launching a executable from KIX not working.
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I do not see how this ( RUN "$Filespec,$2000V4R5M0" ) works at all. Does your command contain a comma?

This would make more sense to me.

RUN $Filespec + $2000V4R5M0
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#119398 - 2004-05-11 08:33 PM Re: Launching a executable from KIX not working.
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Not sure...But it looks like there may need to be a space in there too...

RUN $Filespec+' '+$2000V4R5M0

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.058 seconds in which 0.031 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org