#108561 - 2003-11-20 08:00 PM
logon script and .EXE
|
crivex
Fresh Scripter
Registered: 2003-11-20
Posts: 8
|
Hi all
I am trying to have a kix logon script run an executable independently from the script itself. Which means that the kix script should launch the .EXE and then continue with the other lines of the script.
I have tried to use RUN and SHELL but
If I use RUN like in:
RUN C:\MYEXECUTABLE.EXE
the script launches the exe but the exe is closed as soon as the kix script ends! I want the exe to remain running even after the script ends.
If I use SHELL like in:
SHELL "CMD /C C:\MYEXECUTABLE.EXE"
the exe launches but the script then stops waiting for the exe window to be closed! I want the script to continue past the line that launches the executable.
Is this possible??
Thanks a lot!!!
crivex
|
Top
|
|
|
|
#108562 - 2003-11-20 08:29 PM
Re: logon script and .EXE
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4545
Loc: USA
|
You definately want to use RUN in this circumstance...
Have you tried just running the EXE kinda like below?
Code:
? 'This is a test' run 'notepad.exe' ? 'This is the end' gets $
The code above runs notepad and when the script finishes, notepad is still running...
|
Top
|
|
|
|
#108563 - 2003-11-20 08:56 PM
Re: logon script and .EXE
|
MCA
KiX Supporter
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
We suggest to use somehting like
run '%comspec% /c notepad.exe
greetings.
|
Top
|
|
|
|
#108564 - 2003-11-20 09:14 PM
Re: logon script and .EXE
|
crivex
Fresh Scripter
Registered: 2003-11-20
Posts: 8
|
Hi
I have tried that with my exe ... but as soon as the script ends the executable is closed too!
I am lost....
crivex
|
Top
|
|
|
|
#108565 - 2003-11-20 09:20 PM
Re: logon script and .EXE
|
MCA
KiX Supporter
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
Which application you are trying to start? Can you show you exact statement? greetings.
|
Top
|
|
|
|
#108566 - 2003-11-21 12:26 AM
Re: logon script and .EXE
|
crivex
Fresh Scripter
Registered: 2003-11-20
Posts: 8
|
The application is a very simple executable that I made with VB 6. When excuted it just shows a form with some text that the user should read. The form has a click button that closes it. I would like that form to continue running (be displayed) even after the login script ends.
thanks again
crivex
|
Top
|
|
|
|
#108568 - 2003-11-21 12:39 AM
Re: logon script and .EXE
|
crivex
Fresh Scripter
Registered: 2003-11-20
Posts: 8
|
Yes I did. When the script ends, the executable closes too.
???
|
Top
|
|
|
|
#108571 - 2003-11-21 01:13 AM
Re: logon script and .EXE
|
crivex
Fresh Scripter
Registered: 2003-11-20
Posts: 8
|
I tried to generate a new EXE... even that closes when the script ends. Please remember that this is a login script... it is run on a win2k professional box...
|
Top
|
|
|
|
#108572 - 2003-11-21 01:23 AM
Re: logon script and .EXE
|
crivex
Fresh Scripter
Registered: 2003-11-20
Posts: 8
|
The script is run on a Win2k Pro box that belongs to a Win2k domain. The user is set (group policy) to run a logon script (logon.bat) that does %SYSTEMROOT%\KIX32.EXE %0\..\KIX\kixON.scr
The line
run C:\myexecutable.EXE
is the last line of KixON.scr
kixon.scr launches the EXE which immeaditely closes as the Kixon.scr ends being executed.
I don't understand what's going on...
|
Top
|
|
|
|
#108576 - 2003-11-21 03:55 PM
Re: logon script and .EXE
|
crivex
Fresh Scripter
Registered: 2003-11-20
Posts: 8
|
I have tried that too. No changes, the EXE closes when the script ends.
|
Top
|
|
|
|
#108577 - 2003-11-21 03:57 PM
Re: logon script and .EXE
|
crivex
Fresh Scripter
Registered: 2003-11-20
Posts: 8
|
Hi. The same thing happens with notepad. It closes when the script ends.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
2 registered
(morganw, mole)
and 414 anonymous users online.
|
|
|