#36629 - 2003-02-19 01:15 PM
Problem launching script from batch file
|
Mike Brown
Lurker
Registered: 2003-02-19
Posts: 2
Loc: UK
|
Hi,
Am trying to launch kixtart script from a batchfile, without success.
Netlogon structure:
\kix32 contains kixtart program \uk contains script
calling using batchfile line:
%0\..\kix32\kix32.exe %0\..\uk\test.kix
but test.kix will not run unless I copy it to the root of the netlogon share.
Any ideas?
Thanks
_________________________
--
Mike
|
|
Top
|
|
|
|
#36631 - 2003-02-19 02:01 PM
Re: Problem launching script from batch file
|
Mike Brown
Lurker
Registered: 2003-02-19
Posts: 2
Loc: UK
|
No
_________________________
--
Mike
|
|
Top
|
|
|
|
#36635 - 2003-03-13 06:53 PM
Re: Problem launching script from batch file
|
Anonymous
Anonymous
Unregistered
|
I too am having a problem calling Kixtart from my logon batch. I am testing this batch on my 2000/NT machines: code:
rem NT/2000/XP KiXtart check for v. 4.02 If Exist %windir%\kix402.ok Goto bothOS If Exist %windir%\kix32.exe Del %windir%\kix32.exe If Exist %windir%\system32\kix32.exe Del %windir%\system32\kix32.exe copy \\yeg01-nts-02\netlogon\tools\kix32.exe %windir%\. /Y > NUL @echo KiXtart v402: installation completed > %windir%\kix402.ok rem launch KiXtart interpreter for system logging info, registry setting, time sync %windir%\kix32.exe \\yeg01-nts-02\netlogon\yeg05.kix
When I run the script, I get the failed to open script in the console window. Yet I can type this line at the command prompt and run the script???
Does anyone have a suggestion on this?
[this is just a snippet of the entire logon batch file, there is a "bothOS" tag later on in the script.] [ 13. March 2003, 18:56: Message edited by: Kellar ]
|
|
Top
|
|
|
|
#36637 - 2003-03-13 07:25 PM
Re: Problem launching script from batch file
|
Anonymous
Anonymous
Unregistered
|
I haven't found any threads in a hour that discuss being able to type the line in at the command prompt and have it work, and yet not have the identical line run in a batch file. I'll have another look before I post my own thread on this.
|
|
Top
|
|
|
|
#36639 - 2003-03-13 07:56 PM
Re: Problem launching script from batch file
|
Anonymous
Anonymous
Unregistered
|
Well I'll just have to dig through all those posts and see what I'm doing wrong. Thanks for the suggestions.
|
|
Top
|
|
|
|
#36642 - 2003-03-14 05:47 AM
Re: Problem launching script from batch file
|
Anonymous
Anonymous
Unregistered
|
Thanks for the link Lonkero, I read the post in full.
NTDOC, I saw that script in some other post and used parts of it in my logon script. Not sure if you wrote it, thanks for passing it on just the same.
Since I am testing this script on my machine as admin., and I am sure that there is no problems that way. The problem that I have had from the outset still remains. This line:
%windir%\kix32.exe \\yeg01-nts-02\netlogon\yeg05.kix
can be typed from the command prompt in windows, and works fine. When I place this line in a batch file, I get a message that states that KiXtart cannot find or open the script...
Having said all that, I really do not want to post anymore in this thread as I'm pretty sure sealeopard is reading this andshaking his head at the fact that I'm still posting here and not following proper board etiquette by
a) doing a thorough search before posting and b) not posting in an unrelated thread.
This is the first time I have tried calling a KiXtart script from a batch in NT/2000, and first time with 4.20. I'm sure I am overlooking a very small detail here; it'll take a little time to go through the suggestions presented here and look through the board for other posts. Thanks.
|
|
Top
|
|
|
|
#36644 - 2003-03-14 05:16 PM
Re: Problem launching script from batch file
|
Anonymous
Anonymous
Unregistered
|
Here is the output, it looks like it worked...
----------------------------------------------- ECHO OFF ECHO Content of the WINDIR environment variable ECHO WINDIR = %WINDIR% IF EXIST "%windir%\kix32.exe" ECHO Found "%windir%\kix32.exe" IF NOT EXIST "%windir%\kix32.exe" ECHO Cannot find "%windir%\kix32.exe" IF EXIST "\\yeg01-nts-02\netlogon\yeg05.kix" ECHO Found "\\yeg01-nts-02\netlogon\yeg05.kix" IF NOT EXIST "\\yeg01-nts-02\netlogon\yeg05.kix" ECHO Cannot find "\\yeg01-nts-02\netlogon\yeg05.kix" ECHO Calling "%windir%\kix32.exe" "\\yeg01-nts-02\netlogon\yeg05.kix" PAUSE %windir%\kix32.exe \\yeg01-nts-02\netlogon\yeg05.kix ECHO Error %ERRORLEVEL% -----------------------------------------------
|
|
Top
|
|
|
|
#36646 - 2003-03-14 05:32 PM
Re: Problem launching script from batch file
|
Anonymous
Anonymous
Unregistered
|
Ooops! Here it is:
------------------------------------------------- Content of the WINDIR environment variable WINDIR = C:\WINNT Found "C:\WINNT\kix32.exe" Found "\\yeg01-nts-02\netlogon\yeg05.kix" Calling "C:\WINNT\kix32.exe" "\\yeg01-nts-02\netlogon\yeg05.kix" Press any key to continue... 0Error 0 -------------------------------------------------
[Forgot to say thanks ] [ 14. March 2003, 18:07: Message edited by: Kellar ]
|
|
Top
|
|
|
|
#36647 - 2003-03-15 07:55 AM
Re: Problem launching script from batch file
|
Anonymous
Anonymous
Unregistered
|
One final question: are you guys (the main posters) programmers? I was reading the latest KiXtart golf tournament lastnight and I can barely understand enough to interpret what I am reading.
|
|
Top
|
|
|
|
#36648 - 2003-03-15 08:07 AM
Re: Problem launching script from batch file
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Some are programmers and other are self-taught out of necessity to support out environments and get a pay check.
Just started KixGolf to see if I could get an entry before 3PM. [ 15. March 2003, 08:23: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(mole)
and 1300 anonymous users online.
|
|
|