Page 1 of 1 1
Topic Options
#13674 - 2001-10-30 12:45 AM Cannot execute kix32
Anonymous
Unregistered


Hi all

Some of my colleagues are having a problem running our newest kix script.
Our netware server has been replaced with a Win2000 box running a kix login script to map drives. The novell client has been removed along with all registry entries.
When certain people login the script just doesn't run & no log file is created. When we try to run the kix32 manually within a dos box we get the error "cannot execute kix32".
We've tried increasing permissions & copying the kix32 files & dlls across to the local machine with no success.
Short of a reinstall of the os we can't see any other solution - can anyone help?


Top
#13675 - 2001-10-30 01:06 AM Re: Cannot execute kix32
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Some questions:
- how did you call kixatrt
- does this problem exist for all users? did you verify it with your administrator
account?
- where are the kixtart files located
- where is your script located
- which kixtart version running
- how is your client/server configutarion? mix from w9x/me/nt/w2k/netware?
- can you put your logon batch file on the board?
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#13676 - 2001-10-30 10:39 AM Re: Cannot execute kix32
Anonymous
Unregistered


OK, here goes...
- how did you call kixatrt
IT RUNS FROM THE SERVER CALLED BY A BATCHFILE IN THE USER PROFILE - THE SAME AS ALL OUR OTHER SERVERS
- does this problem exist for all users? did you verify it with your administrator
account?
NO, ONLY A SELECT FEW - I'VE GIVEN THE PROBLEM USERS DOMAIN ADMIN RIGHTS & IT MADE NO DIFFERENCE
- where are the kixtart files located
ON THE DC SERVERS IN THE NETLOGON DIRECTORY
- where is your script located
SAME
- which kixtart version running
3.63
- how is your client/server configutarion? mix from w9x/me/nt/w2k/netware?
NOT QUITE SURE WHAT YOU MEAN... REGARDS OSs WE'VE THE WHOLE LOT - WIN 95 THRU TO W2K WITH EVERYTHING INBETWEEN, INCLUDING CITRIX METAFRAME & WINFRAME
- can you put your logon batch file on the board?
SEE BELOW - IT'S VERY STRAIGHTFORWARD

;Version 2.1 26/10/2001
redirectoutput("c:\logfile.txt",1)
? "Welcome, @userid"
;
:checkadmin
;
if ingroup("Administrators") or ingroup("Domain Admins")
? "You are using an admin login, do not run this script with an admin login"
? "The script will now exit and stop processing"
?
?
;
goto finish
;
endif
;
;
;
;Set variables and map drives for users
;
:setupdrives
gosub setvariables
gosub mapdrives
;
exit
;
:setvariables
;
;
$domain = @DOMAIN
;
$dataserv = "infotech"
;
;
$datapath = "\\" + $dataserv + "\"
$printserv = $datapath
;
return
;
;
:mapdrives
;
;
$total = len(@PRIMARYGROUP)
$off = instr(@PRIMARYGROUP,"_")
$length = $total - $off
$group= substr(@PRIMARYGROUP,$off + 1,$length)
;
$groupshr = $datapath + $group
$Appsshr = $datapath + "apps"
$publicshr = $datapath + "general"
;
;?"home shr is @HOMESHR"?
;?"group shr is $groupshr"?
;?"public shr is $publicshr"?
;
use h: "@homeshr"
if @ERROR = 0
?"h: is @homeshr"?
else
?"error is @ERROR for @homeshr"?
endif
;
use t: "$groupshr"
if @ERROR = 0
?"t: is $groupshr"?
else
?"error is @ERROR for $groupshr"?
endif
;
use s: "$publicshr"
if @ERROR = 0
?"p: is $publicshr"?
else
?"error is @ERROR for $publicshr"?
endif
;
if ingroup ("it_apps")
use R: "$appsshr"
if @ERROR = 0
?"R: is $appsshr"?
else
?"error is @ERROR for $appsshr"?
endif
endif
return
;
;---------------------------------------------------------------------------
:finish
exit

WE USE SIMILAR SCRIPTS IN OTHER DEPTS BUT HAVE NEVER COME ACROSS THIS PROBLEM BEFORE...

THANKS FOR ANY SOLUTION YOU CAN COME UP WITH...
GILL

Top
#13677 - 2001-10-30 09:53 PM Re: Cannot execute kix32
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Some suggestions to your code

  • change f.e. Ingroup("Administrators" to (Ingroup("Administrators") <> 0)
  • you are using RedirectOutput. Use f.e. MessageBox to verify your script.
    We introduce the $info variable.
    First statement will also a MessageBox call.
  • we move your $groupshr and @homeshr to the end. First we set the mappings
    $publicshr and $appsshr.

code:

;Version 2.1 26/10/2001
CLS
IF (MessageBox("Logon script started","Kixtart Info",0,300) <> 0)
ENDIF
;RedirectOutput("c:\logfile.txt",1)
? "Welcome, @userid"
;
$info=""
$crlf=CHR(13)+CHR(10)
:checkadmin
;
IF (Ingroup("Administrators") <> 0) OR (Ingroup("Domain Admins") <> 0)
? "You are using an admin login, do not run this script with an admin login"
? "The script will now exit and stop processing"
?
$info=$info+"Admin group: skip script"
GOTO finish
ENDIF
;
;Set variables and map drives for users
;
:setupdrives
GOSUB setvariables
GOSUB mapdrives
IF (MessageBox($info,"Kixtart Info",0,300) <> 0)
ENDIF
EXIT

:setvariables
$domain = @domain
$dataserv = "infotech"
$datapath = "\\" + $dataserv + "\"
$printserv = $datapath
;
$info=$info+"domain = "+@domain+$crlf
$info=$info+"datapath = "+$datapath+$crlf
RETURN

:mapdrives
$total = Len(@primarygroup)
$off = Instr(@primarygroup,"_")
$length = $total - $off
$group= Substr(@primarygroup,$off + 1,$length)
;
$groupshr = $datapath + $group
$appsshr = $datapath + "apps"
$publicshr = $datapath + "general"
;
? "home shr is @homeshr"
? "group shr is $groupshr"
? "public shr is $publicshr"
;
$info=$info+"pr.group = "+@primarygroup+$crlf
$info=$info+"home = "+@homeshr+$crlf
$info=$info+"appsshr = "+$appsshr+$crlf
$info=$info+"publicshr = "+$publicshr+$crlf
;
USE s: "$publicshr"
IF @error = 0
? "p: is $publicshr"
$info=$info+"publicshr = mapped"+$crlf
ELSE
? "error is @error for $publicshr"
$info=$info+"publicshr = map error @error (@serror)"+$crlf
ENDIF
;
IF (Ingroup ("it_apps") <> 0)
USE r: "$appsshr"
IF @error = 0
? "r: is $appsshr"
$info=$info+"appsshr = mapped"+$crlf
ELSE
? "error is @ERROR for $appsshr"
$info=$info+"appsshr = map error @error (@serror)"+$crlf
ENDIF
ENDIF
;
IF (len(@homeshr) <> 0)
USE h: "@homeshr"
IF (@error = 0)
? "h: is @homeshr"
$info=$info+"home = mapped"+$crlf
ELSE
? "error is @error for @homeshr"
$info=$info+"home = map error @error (@serror)"+$crlf
ENDIF
ELSE
? "no h: for @homeshr"
$info=$info+"home = no mapping"+$crlf
ENDIF
;
USE t: "$groupshr"
IF @error = 0
? "t: is $groupshr"
$info=$info+"groupshr = mapped"+$crlf
ELSE
? "error is @error for $groupshr"
$info=$info+"groupshr = map error @error (@serror)"+$crlf
ENDIF
RETURN
;---------------------------------------------------------------------------
:finish
IF (MessageBox($info,"Kixtart Info",0,300) <> 0)
ENDIF
EXIT


Please let us know your result.
Please put also your logon batch file on the board.
Your error cannot execute kix32 isn't a kixtart problem, but possible
a permission problem. Verify your rights to your netlogon directory.
In your first entry you talk about the migration from netware to windows 2000. Did
your organisation also make those changes to other departments?

greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#13678 - 2001-11-01 01:36 PM Re: Cannot execute kix32
Anonymous
Unregistered


Neat script!
Using this I've managed to figure out that the problems lie with the pcs, not the script...
Many thanks for your help...
Gill

Top
#13679 - 2004-03-12 08:33 AM Re: Cannot execute kix32
sgtan Offline
Fresh Scripter

Registered: 2004-02-17
Posts: 20
Hello Gill,

I may have a similar problem that I've just posted in the forum. I am unable to execute kix32.exe manually from any directory location though I've had the file copied.

Can you let me know what was the solution to your problem? I'm sure my issue is not a script issue as all other clients or servers are running the batch file without any problem. The system with kix32.exe is a NT4 server sp6a.

Any advise?

Thanks.

SGTan

Top
#13680 - 2004-03-12 08:50 AM Re: Cannot execute kix32
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
please don't poke and dredge old threads.
_________________________
!

download KiXnet

Top
#13681 - 2004-03-12 09:21 AM Re: Cannot execute kix32
sgtan Offline
Fresh Scripter

Registered: 2004-02-17
Posts: 20
Sorry, I'm new to this. My first time posting a message to the forum. I thought Gill could help since there's no solution provided though the issue is resolved.
Top
#13682 - 2004-03-12 01:32 PM Re: Cannot execute kix32
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
Start your own topic...

ABC's of KiXtart board etiquette and message to new forum users

Btw. Gill isn't a frequent poster... I think you have to wait a very long time before he shall answer your question...

bb-top25
_________________________
Co


Top
#13683 - 2004-03-12 08:45 PM Re: Cannot execute kix32
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Quote:

Start your own topic...

ABC's of KiXtart board etiquette and message to new forum users

Btw. Gill isn't a frequent poster... I think you have to wait a very long time before he shall answer your question...

bb-top25




yeah but constant replys of "read the FAQ" really be ALL that helpful?

Top
#13684 - 2004-03-12 09:09 PM Re: Cannot execute kix32
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
Well Bryce, it isn't very welcome, that is true but I have always learned it isn't possible to know everything... So you have to learn how to search!! If people don't start reading the manual or the FAQ they don't know how to do it or they are too lazy . I don't want to accuse Sgtan of laziness but there are lots of post in which it is.
In that case I don't see any problem to say RTFM...

When he had read the ABC's of KiXtart board etiquette and message to new forum users he should know in about a minute:

" I. Dredging up or hijaaking (recycling) old topics - Please don't dredge up old topics unless you have good information to add. Don't recycle (hijaak) one as your own. The originator may have enabled email notification and may not want the email. Better instead, to start your own (new) topic and provide a link to a similar topic if it helps to describe your case."


Edited by Co (2004-03-13 10:18 AM)
_________________________
Co


Top
#13685 - 2004-03-13 10:22 AM Re: Cannot execute kix32
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
@Sgtan

MCA is talking about: "Your error cannot execute kix32 isn't a kixtart problem, but possible
a permission problem. Verify your rights to your netlogon directory"


Did you checked that?
_________________________
Co


Top
#13686 - 2004-03-13 10:27 AM Re: Cannot execute kix32
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
There is a new thread I see... Unable to execute kix32.exe manually

I don't respond to this one anymore...
_________________________
Co


Top
#13687 - 2004-03-13 10:55 PM Re: Cannot execute kix32
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
not new.
he posted it lot before replied here.
_________________________
!

download KiXnet

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 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.067 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

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