Page 1 of 1 1
Topic Options
#70687 - 2002-10-08 11:46 AM Hide external program startup message
GattoNero Offline
Lurker

Registered: 2002-10-08
Posts: 1
HI guys...

I've create a simple logon script that CALL another small scripts

code:
(...)
If Exist(@LSERVER + "\netlogon\kix\Identd.kix")
Call @LSERVER + "\netlogon\kix\Identd.kix"
EndIf
(...)

which launch a daemon on the target machine with the RUN command.

code:
 
(...)
:Run
Run (@LanRoot + "\daemon.exe")

:End
Sleep(2)
Exit

When this daemon starts a welcome message is displayed in the console window.

How can I prevent this?

(ps: no switch on the daemon for run in silent mode)

TNX

BYE

Top
#70688 - 2002-10-08 02:26 PM Re: Hide external program startup message
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Check out this FAQ on how to redirect output.

Topic: Not quite everything you wanted to know about RUN and SHELL
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#70689 - 2002-10-08 04:04 PM Re: Hide external program startup message
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
It depends on the nature of the welcome message. If the output is into the console windows, then redirecting the out put might work or calling the application with START /MIN /WAIT might also work. However, fi the output is some kind of splash screen or message box then I don't think you'll be able to suppress it.

However, if you schedule the application with the Task Scheduler and run it under another user account then there will be no feedback at all on the current user's desktop for that application since it'll only interact with it's own (non-existent) desktop.
_________________________
There are two types of vessels, submarines and targets.

Top
#70690 - 2002-10-08 05:21 PM Re: Hide external program startup message
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok.
if the:
run "daemon.exe >nul"

does not work, you can put the another kixscript into another process.
meaning, change the call line to:
shell @LSERVER+"\netlogon\kix\kix32 Identd.kix"

and in the identd.kix make the the first line:
setconsole("hide")

also, couldn't avoid noticing that you're using editor of some sort. a poor one as it does not know the difference between command and function...
_________________________
!

download KiXnet

Top
#70691 - 2002-10-08 05:48 PM Re: Hide external program startup message
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
Did you try run "daemon.exe 1>nul 2>nul" ?
_________________________
We all live in a Yellow Subroutine...

Top
#70692 - 2002-10-08 06:17 PM Re: Hide external program startup message
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
waltz, the additional to just >nul is just for piping error messages also.
so, if >nul does not work, it should not either.
 
_________________________
!

download KiXnet

Top
#70693 - 2002-10-08 06:39 PM Re: Hide external program startup message
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Hmm. A couple thoughts... are you running the script with a SETCONSOLE("hide") before calling the daemon? Sometimes this works.. Or you can fiddle with using START /m to run minimized...

Also, some applications can be called hidden.. even if they don't have a commandline switch for doing it. If you check out the COM forum, there are ways to open apps with Win32_Process...

Brian

Top
#70694 - 2002-10-08 07:14 PM Re: Hide external program startup message
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I guess none of you guys read my FAQ!

Sorry boys... redirect '>' does not work without %comspec%.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, 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.096 seconds in which 0.056 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