After extensive searching of this forum and the user guide I turn to you all in desperation. I have used the most excellent editor KiXscripts Editor from iTripoli to turn one of my kix scripts into an self extracting exe (test.exe).
However, now I want to call test.exe from another program (filebuild, which is an IDEAS 4GL basic program running in a IBM UniVerse database) and pass test.exe a variable (a file name that filebuild creates and that test.exe will FTP to another server on our network). I know how to pass a .kix or .bat script a variable on the command line ($Var="whatever") but am at a loss with the exe.
The command in filebuild.exe for a .bat would be:
code:
Z3000.FILENAME = THEFILE
PERFORM "DOS /c C:\KIX421\KIX32.EXE C:\TEST.BAT $FILE=" : Z3000.FILENAME
and this works fine (The DOS /c is the IDEAS way of calling a DOS shell). However, change test.bat to at self extracting exe:
code:
Z3000.FILENAME = THEFILE
PERFORM "DOS /c C:\TEST.EXE $FILE=" : Z3000.FILENAME
and it all falls over. test.exe runs but with no variable being used.
Within test.exe, I Dim a variable ($Sourcefile) and then set it to $FILE ($SourceFile = $FILE). I then pass $SourceFile to various functions.
Any ideas please? TIA
_________________________
Andy Mack