#72103 - 2002-12-09 03:41 PM
Re: Wkixcrypt & console
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
quote: eh, then back again with actual question: what is the problem with me as can't make it work on simple kixweeper13.kix (from kixforms.org) all it does is nothing... well, meaning that when output is suppressed, nothing can be seen....
KiXcrypt (and wkixcrpt) just execute kix32.exe (or wkix32.exe) with the temporary file as a parameter, in exactly the same way as if you'd executed them from a BAT file.
Off the top of my head I can't think of anything that would cause them to fail because of the content of a script, unless there is a problem with environment space or %COMSPEC% is set to something odd.
For the purposes of debugging your problem you could try:
- Use the "-c" flag to disable %COMSPEC% on the line.
- Use the "-k" flag to disable the KiXtart file delete code.
- Use the "-d" flag to confirm that the command line is what you expect.
- See if it works with kixcrypt.exe rather than wkixcrpt.exe
- Use a wrap-round BAT file to pause so you can see any error messages generated by the application. To do this, create a batch file which will execute the application and pause - call it "debug.bat". Now create the encrypted version using the command:
kixcrypt -d -k debug.bat ^s Hopefully you should see any error messages generated by the application.
|
|
Top
|
|
|
|
#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
|
|
|
|
#72106 - 2002-12-09 04:56 PM
Re: Wkixcrypt & console
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear Richard,
It doesn't cost us much time to find the kixcrypt reactions of you back. We will try to make a list of URLs and add it to the main topic F2-2560. Within 5 seconds we find over 50 topics which contains the keyword kixcrypt. In combination with your name we find over 20 topics. greetings.
|
|
Top
|
|
|
|
#72108 - 2002-12-09 05:21 PM
Re: Wkixcrypt & console
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
|
|
Top
|
|
|
|
#72109 - 2002-12-09 05:27 PM
Re: Wkixcrypt & console
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Huh
Freaky. I still get the nonsense results.
I guess there must be something screwy with my UBB profile. I'll try tomorrow and see what happens...
|
|
Top
|
|
|
|
#72110 - 2002-12-09 05:33 PM
Re: Wkixcrypt & console
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear Richard,
It hasn't to deal something with your profile. We are doesn't use the search facility of this board. With this search engine we get also a lot of garba- ge. It aren't four topics anymore, but now we get over 60 topics as feedback. greetings.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 837 anonymous users online.
|
|
|