Page 1 of 1 1
Topic Options
#188310 - 2008-06-21 04:53 AM Error Command Not Found
Norman Zhang Offline
Fresh Scripter

Registered: 2003-02-07
Posts: 28
Loc: BC, Canada
I tested hello.kix, and it works.

But when I change the first line to just a simple

@echo off

I get

ERROR : unknown command [off]!
Script: \\s0001\netlogon\hello.kix
Line : 1

Any ideas?

Top
#188311 - 2008-06-21 05:06 AM Re: Error Command Not Found [Re: Norman Zhang]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA


Sorry partner, but @echo off is batch scripting.

If you are trying to silence the functions returning 1s and 0s...

Why does the console display zeros and ones (amongst others)?
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81941#Post81941

All the other FAQs
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=5&page=1
_________________________
(... better days ahead)

Top
#188312 - 2008-06-21 05:22 AM Re: Error Command Not Found [Re: Allen]
Norman Zhang Offline
Fresh Scripter

Registered: 2003-02-07
Posts: 28
Loc: BC, Canada
Thanks. I removed the @echo off. My script now looks like

%0\..\kix32.exe \\s0001\NETLOGON\logon.kix

if ingroup ('classified')
use x: /delte
use x: \\s0001\classified
endif

if ingroup ('confidential')
use y: /delete
use y: \\s0001\confidential
endif

use z: /delete
use z: \\s0001\general

but I get

ERROR : unknown command [%0\..\kix32.exe]!
Script: \\s0001\netlogon\logon.kix
Line : 1

Top
#188313 - 2008-06-21 05:30 AM Re: Error Command Not Found [Re: Norman Zhang]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA
I think you are getting the batch file and the kix file mixed up. I'm not sure about your paths for the logon.kix, but I will let you figure that out.

If you want to use a batch file, call it logon.bat (or whatever.bat). In the bat file:

 Code:
@echo off
%0\..\kix32.exe \\s0001\NETLOGON\logon.kix


In your logon.kix... quotes around your paths, fix delte
 Code:
if ingroup ('classified')
  use x: /delete
  use x: "\\s0001\classified"
endif

if ingroup ('confidential')
  use y: /delete
  use y: "\\s0001\confidential"
endif

use z: /delete
use z: \\s0001\general
_________________________
(... better days ahead)

Top
#188314 - 2008-06-21 06:04 AM Re: Error Command Not Found [Re: Allen]
Norman Zhang Offline
Fresh Scripter

Registered: 2003-02-07
Posts: 28
Loc: BC, Canada
Thanks so much. I now have problem with the path 8(

If I run \\s0001\kix32 \\s0001\netlogon\logon.kix on the clients (XP Pro), I can map the drives.

However setting Profile\Logon Script = kix32 or logon.bat won't work. kix32.exe has already been copied to with clients c:\windows\system32 folder.


Edited by Norman Zhang (2008-06-21 06:05 AM)

Top
#188316 - 2008-06-21 03:18 PM Re: Error Command Not Found [Re: Norman Zhang]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Ok. At user level you should set logon.bat or kix32.exe yourscript.kix. Both of these options assume that kix32.exe, your script and if you use a batch file to start the logon script are all in the \\server\sysvol or \\server\netlogon folder. If you set logon scripts using a GPO then set kix32.exe as the script and logon.kix as the parameter.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#188318 - 2008-06-22 06:33 AM Re: Error Command Not Found [Re: Mart]
Norman Zhang Offline
Fresh Scripter

Registered: 2003-02-07
Posts: 28
Loc: BC, Canada
thx Allen and Mart. Solution provided solves the issue here.
Top
Page 1 of 1 1


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

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.058 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:
Google
Web kixtart.org