Ok the doskey /history it is not the best solution ... ( at my win me , win 2k box works )

Here is the briliant idea of the day #2 :

why not to use the variable $scriptname ? It will return the name of your script. All you have to is to start your script with the command :
kixtart whatever.kix

The kixtart is a bat file that you ll have to copy to the known place ....

here are the contents of the kixtart.bat


code:

@echo off
goto code

-------------------------------------------------

If you run your kixtart script within that bat
file, then inside your script you can have the
script name available as variable $scriptname

The only thing you have to is simply to start
your script with the command :

kixtart script.kix

If for some reason you want to start your script
with the classical way and do not have the option
of $scriptname variable, then you have to give
the command :

kixtart script.kix -normal


George Bouras
root@novastar.dtdns.net

-------------------------------------------------

:code
cls

if "%1%"=="" goto error
if "%2%"=="-normal" goto normal
if "%2%"=="" goto iloveperl
if not "%2%"=="" goto ohnoo
if not "%3%"=="" goto error

goto iloveperl
:error
echo.
echo.
echo You are missing the kix script name !
echo You have to do something like this :
echo.
echo kixtart myscript.kix
echo.
echo Please try again : )
echo.
echo.
goto end

:ohnoo
echo.
echo.
echo It looks that you tried to run your
echo script with the default way; close
echo enough but not exactly. Try the
echo command :
echo.
echo kixtart myscript.kix -normal
echo.
echo.
goto end


:normal
%comspec% /c kix32.exe %1
goto end

:iloveperl
%comspec% /c kix32.exe %1 $scriptname=%1%
goto end

:end


by the way, why I downgraded from member to junior ? :)