I've seen a lot of references to script handling XP/W2K with %0 in a different manner.
FWIW, here's my approach:
code:
SET CurDir=%0\..
IF %0=="%~0" SET CurDir=%~0\..
IF Not %0=="%~0" SET CurDir=%0\..
CLS
"%CurDir%\KIX412\KIX32.EXE" "%CurDir%\myscript.kix"
Discussion:
%0 in W2K and XP adds "" around the value of the batch file name, preventing the normal method of using %0\..\
In XP/W2K %~0 removes the quotes. Comparisons can determine the correct result, for all OSes.
-Crazy Eddie
Edited to show quotes around KIX and script calls. (This allows spaces in the %CurDir% variable to still work.)
[ 06. December 2002, 19:17: Message edited by: Crazy Eddie ]
_________________________
{Insert your favorite Witty Tag Line here}