#46166 - 2003-09-30 02:36 PM
Re: Kixcrypt Question
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Yes, you can call one script from another.
To be certain that it will work as you expect, you need to be sure to qualify the path. The directory that the scripts are unloaded into is available in an environment variable %KIXCRYPTDIR%
To make your script portable you could do something like:
code:
If %KIXCRYPTDIR% $sScriptPath=%KIXCRYPTDIR%+"\" Else $sScriptPath=".\" EndIf ...later in your script... Call $sScriptPath+"part2.kix" Call $sScriptPath+"part3.kix"
The only script you won't be able to call is the "master" script, as although the file name is available in %KIXCRYPTFILE% the script is overwritten and deleted as soon as possible after the primary command begins to execute.
|
|
Top
|
|
|
|
#46168 - 2003-10-01 09:46 AM
Re: Kixcrypt Question
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
I don't recall the thread - if you know what it was about I may be able to answer specifically.
KiXcrypt has gone through major code changes, including using a new compiler, and as far as I am aware there are no outstanding problems running on any Wintel platform.
KiXtart was in fact developed on a Win95 platform, so it was more stable there than on WinNT+. It is now developed on XP.
The only issue that I can recall was that malloc()ed memory on Win95 was zeroed by the OS, and not on WinNT. This meant I missed a school-boy error where I didn't explicitly zero the memory myself. As I has no access to WinNT it was a bastard to track down. I've switched to statically allocated buffers in most cases now. This makes the code slightly less efficient (I allocate a few KB more memory than I actually need), but it means that the code is simpler and less prone to stupid errors.
I still have a Win9x box on my desk for debugging, although I don't know how long I'll be able to keep it, so if you do experience a problem let me know.
quote: we still have some Wintendo left in our environment - I just don't know where in the country they are which makes it kind of hard to test.
You'll want to include an OS check in your script that fires off an email alert when it's run on a Win9x machine.
Amongst the machines I support I know of at least 2 Win3.11 machines and one Win3.1 machine still in production use for office applications
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1471 anonymous users online.
|
|
|