Page 1 of 1 1
Topic Options
#82005 - 2003-01-20 09:40 PM Use of %0\..\ to launch KiX
Les Offline
KiX Master

Registered: 2001-06-11
Posts: 12734
Microsoft wrote a Knowledge Base Article - 318689;EN-US;318689 that discusses an issue with XP. Within the article are several examples, some of which are downright incorrect.

The first one:
%0\..\kix32.exe myscript.scr

is not wrong but I believe a more precise way would be to specify the path to the script as well:
%0\..\kix32.exe %0\..\myscript.scr

The second one:
call kix32.exe myscript.scr
goto end

%0\..\kix.exe %0\..\kix32.exe myscript.scr

is definitely wrong and should be:
kix32.exe myscript.scr
goto end

%0\..\kix32.exe %0\..\myscript.scr

I did report this to Ruud, and this was his reply:
Thanks for the report. The second example is indeed broken, and I will
report this to the author of the article.

The syntax you propose for the 1st example is more efficient (it may
save 1 network roundtrip depending on where the script and KIX32.EXE are
actually stored). However, the original syntax will also function
correctly, as KiXtart automatically tries to locate scripts in the
NETLOGON and the start-directory.

Here is another slant on the XP issue.
Topic: Another %0 method

Additionally, I would like to point out that if launching WKiX32.exe from a LOGON.BAT file, that START /W be used to hold the BAT until the script completes.

START /W WKiX32.exe myscript.scr

Take a look also at Topic: LOGON.BAT (the overkill version) for more ideas.

Another issue that is worth at least a mention here is the "Windows XP Professional Fast Logon Optimization Feature". See the TechNet article;en-us;305293& and this thread Topic: XP's Failure to run Login script

Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

#82006 - 2003-05-21 06:05 PM Re: Use of %0\..\ to launch KiX
Kdyer Offline
KiX Supporter

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Please also refer to the post - MS-Tech Article findings- 318689

In testing, you actually do need the "CALL" to start Kixtart. Traditionally, CALL was reserved for CALLing other BATCH Files.


Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Page 1 of 1 1

Moderator:  Jochen, Radimus, Glenn Barnas, Allen, Arend_, ShaneEP, Mart 
Hop to:
Shout Box

Who's Online
2 registered (Allen, ShaneEP) and 480 anonymous users online.
Newest Members
Raffy, proprzemo, Lolica12, perices, Relakz
17848 Registered Users

Generated in 0.051 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google: