#72105 - 2002-12-09 04:26 PM
Re: Wkixcrypt & console
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Patrick,
Apologies for taking so long to answer your original question. quote: Running it still gives me a short console window...
Can this be prevented???
Errm, not really. I've gone into it in loads of detail before, but unfortunately the boards search mechanism is fubarred so I cannot locate previous posts.
Basically the problem is that I spawn an new process to execute the unencrypted file using the C "system()" call. This creates the console and I haven't found a way around it. I spawn a new process as I need the old one around to stick around to remove the temporary file if it is left behind for any reason.
People have got around the console appearing for KiXtart scripts by using SetConsole("HIDE") as the very first thing.
You may also be able to play with the %COMSPEC% options and/or the "start" command to minimise the time that the console window appears, but other than that I'm afraid you're stuck with it.
Unless anyone has a solution to my "system() creates console" problem?
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 533 anonymous users online.
|
|
|