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
Loc: fortfrances.on.ca
Microsoft wrote a Knowledge Base Article - 318689 http://support.microsoft.com/default.aspx?scid=kb;EN-US;318689 that discusses an issue with XP. Within the article are several examples, some of which are downright incorrect.

The first one:
:9x
%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:
:9x
%0\..\kix32.exe %0\..\myscript.scr


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

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


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

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


I did report this to Ruud, and this was his reply:
quote
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.

:win_NT
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 http://support.microsoft.com/default.aspx?scid=KB;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.

Top
#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.

Thanks,

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

Top
Page 1 of 1 1


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

Who's Online
0 registered and 171 anonymous users online.
Newest Members
mdress, Jagcats, Dramamu, Tamperold, RrrDdd
17677 Registered Users

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

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org