here is my cmd file :
 Code:
@echo off
 
setlocal
set scriptdir=%~dp0
set scriptname=%~n0
 
"%scriptdir%kix32.exe" "%scripdir%%scriptname%.kix
 
endlocal


scriptdir contains the full path of the .cmd file
scriptname constains the cmd file without extension.

So in the directory, i have logon.cmd, logon.kix and kix32.exe
If i have to test a new version, i can copy the files anywhere.
All path are relative to the path of the logon.cmd file \:\)

This has been working since NT4
_________________________
Christophe