Page 1 of 2 12>
Topic Options
#129852 - 2004-11-18 03:47 PM Running Kix program in hidden dos window
Steevan Offline
Lurker

Registered: 2004-11-18
Posts: 4
Hi, I would like to know if a kix script can be run in hidden mode(no dos window). I am using kix as a pre/post launch script for an application shortcut to be published in Citrix metaframe XP. As this dos window will be open throughout the duration of the application, I just wanted to know if this can be hidden.

Thanks in Advance
Steve

Top
#129853 - 2004-11-18 03:49 PM Re: Running Kix program in hidden dos window
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Check-out WKIX32.EXE ... as long as you don't do any console io, should be nice and clean and console-less. wkix32 comes with the Kixtart package.
Top
#129854 - 2004-11-18 03:52 PM Re: Running Kix program in hidden dos window
Steevan Offline
Lurker

Registered: 2004-11-18
Posts: 4
The Problem is that I can't use new Kix engine as the project team has already approved Kix32.exe that i am using currently.

Looking forward to your kind advice

Regards, Steve

Top
#129855 - 2004-11-18 03:55 PM Re: Running Kix program in hidden dos window
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
What version of Kixtart you approved for ? wkix32 is pretty-much the same as kix32.exe (at a given version level) ... except no console. So for example, getting approved at 4.22 kix32.exe is "the same" as getting approved for wkix32.exe at 4.22 - its the same engine.
Top
#129856 - 2004-11-18 04:00 PM Re: Running Kix program in hidden dos window
Steevan Offline
Lurker

Registered: 2004-11-18
Posts: 4
Thanks a million Shawn. I will inform the project architects here regarding this.

I was just wondering if we have vbscript kind of option in kix where we use the flag VBHIDE (to be used with shell.run command)to hide the window.

Top
#129857 - 2004-11-18 04:01 PM Re: Running Kix program in hidden dos window
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well... WKiX32 is async, so YMMV. You could always hide the console. See SetConsole() in the manual.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129858 - 2004-11-18 04:08 PM Re: Running Kix program in hidden dos window
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
ja Les good point, Was thinking about SetConsole but thought that if you launched kix32 directly out of usermgr, that the console would "flash" for a micro-second ... and that wkix32 would be the pure console-less login. I think DOC does his stuff this way (Doc?) ...

But if getting wkix32.exe into a existing environment is not possible, setconsole would be a good option ja.


Top
#129859 - 2004-11-18 04:14 PM Re: Running Kix program in hidden dos window
Steevan Offline
Lurker

Registered: 2004-11-18
Posts: 4
Thanx Shawn , Les,

setconsole("hide") did the trick for me. Blinking is OK for me.

Thank you very much.

Steve
sdsouza@hp.com

Top
#129860 - 2004-11-18 04:16 PM Re: Running Kix program in hidden dos window
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Ja, SetConsole() would flash the ugly DOS box but the async nature of WKiX may be an issue since he is doing a Citrix published app. Eh, where is the CitrixDude when you need him?

I cannot test the published app async issue cuz they will not give me admin access to our farm.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129861 - 2004-11-18 04:23 PM Re: Running Kix program in hidden dos window
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
There are a few tricks with START that you might want to try like the /MIN and /WAIT switches that might at least minimize it on the taskbar until it is hidden. One could also create and use a shortcut that has the minimized attrib set on it.

The prob with the flashing DOS box is that when the user is in a session over a slow link, the screen painting shows the box for more than just a sec.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129862 - 2004-11-18 06:23 PM Re: Running Kix program in hidden dos window
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
We had used wkix32.exe with the /i switch so there was never any console regardless of output. We also set the policy on all of our citrix servers for tha asynch stuff (would wait for the scripts to finish before loading app). This never seemed to cause any problems.

nevermind...i was talking about our login scripts. just now realized hes talking about a script to launch an application. still think that wkix32 would be the way to go if youre wanting to avoid a console. i cant test much at the moment however


Edited by CitrixMan (2004-11-18 06:28 PM)

Top
#129863 - 2004-11-18 06:31 PM Re: Running Kix program in hidden dos window
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
ahhh, i totally missed that "pre/post launch" thingy too. Thought he was talking about login script - we use wkix32 /i for ALL our stuff like that (for example, stuff that launches from the RUN key) ... best way to go for sure - wouldn't strongly recommend wkix32 if possible. It would be worth the extra effort.

To be honest (and this is just my opinion), apps that have command-window pops (or flashes) are very, ummmm, how can I put this ...ahem.... un-professional looking ... just my two cents imho fwiw !!!

-Shawn

I mean, if you have to flash - you have to flash. But like Jerry Seinfeld might say "given the option between the flash and no-flash ... no-flash!!!" ;0)

Top
#129864 - 2004-11-18 06:33 PM Re: Running Kix program in hidden dos window
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Yes, we use WKIX32.EXE for both Logon and some Citrix launch. Others use the Citrix InFuse client and it only publishes the application without any special script involvment.

We did run into an issue though where using the /i switch of WKIX32.EXE would hang one of our programs. We quit using the /i switch and I don't remember enough of the details to explain here, not sure which application it was.

Top
#129865 - 2004-11-18 06:50 PM Re: Running Kix program in hidden dos window
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and to get back to the reasoning with i-switch.
use it if you don't know your kix.
uglier than goto's.
_________________________
!

download KiXnet

Top
#129866 - 2004-11-18 07:27 PM Re: Running Kix program in hidden dos window
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Yes, agreed. The /i invisible mode hides even most if not all errors in your code.
Top
#129867 - 2004-11-18 07:36 PM Re: Running Kix program in hidden dos window
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
I agree...if proper coding is used, the /i switch is not needed. i just see it as more of a fail safe, so that even in the rare case that an error does end up in the production script, the end users dont see it. Especially when dealing with citrix and published applications. The more transparent the whole process is, the better off.
Top
#129868 - 2004-11-18 07:48 PM Re: Running Kix program in hidden dos window
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sorry, it is not onerrorResumeNext magic...
it just hides console infinitely.
if you got an error in your script, wkix32 will anyways blow it on the users screen with messagebox, no?
and, after all, it's better to find a problem immediately, rather than not seeing before every wksta is screwed up.
_________________________
!

download KiXnet

Top
#129869 - 2004-11-18 08:05 PM Re: Running Kix program in hidden dos window
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
yea youre right. a real error will still display with a msg box. when i said error, i was referring to something like one of the other admins editing the script in a manner that may display something to the console. i can either trust that all of the admins at our organization knew how to code like me, or could just run with the /i just in case.
Top
#129870 - 2004-11-18 08:10 PM Re: Running Kix program in hidden dos window
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
or, use $nul=redirectoutput("%temp%\logon.log")
_________________________
!

download KiXnet

Top
#129871 - 2004-11-18 10:02 PM Re: Running Kix program in hidden dos window
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
If you are launching a kix app straight from a citrix metaframe session... i would use the latest 4.23 beta. Since 4.23 has some fixes specifically targeted towards citrix applications.

Bryce

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 484 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.072 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

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