Page 1 of 1 1
Topic Options
#120704 - 2004-06-07 03:36 PM Script Exits Unexpectedly
Udaloy Offline
Fresh Scripter

Registered: 2003-09-08
Posts: 31
Loc: Ohio
Hello all,

Last Thursday or Friday, I started getting calls about some people's network drives not getting mapped. I ran the script in debug mode, and I found that the script is exiting before it's completed. Right in the middle of the script, for no good reason. The whole script is to map an S: drive depending on which department you are in. This script has worked for about a year or so without a hitch, and now it's exiting at this code:

Code:
  
:MARKETING

If InGroup("MARKETING")
Use s: $x+"marketing"
?'S: drive mapped to Marketing share'
If InGroup("Residential Services")
Use r: /Del
Use r: $x+"Residential"
?'R: drive mapped to Residential share'
GoTo TREASURY
EndIf
EndIf



The reason for the goto is to skip the very next If InGroup line, as there is a person in Marketing that is also in Residential Services, and mapping two S: drives isn't productive.

This particular code happens to be on line 125, not the problem in my opinion. Any ideas?

Top
#120705 - 2004-06-07 03:38 PM Re: Script Exits Unexpectedly
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, I bet someone changed code and the $x is no longer what it should be.
_________________________
!

download KiXnet

Top
#120706 - 2004-06-07 03:40 PM Re: Script Exits Unexpectedly
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k...
in my opinion you should post the whole script in scripts forum for observation.
_________________________
!

download KiXnet

Top
#120707 - 2004-06-07 04:46 PM Re: Script Exits Unexpectedly
Udaloy Offline
Fresh Scripter

Registered: 2003-09-08
Posts: 31
Loc: Ohio
I've posted the whole script on the forum mentioned. $x is pointing to where it should be. Now I have a user that is losing their script at the Surgery Payroll section of code.

This script is called from the end of the main kixtart.kix script. I don't believe there is, but is there a time limit on a called script to run? I thought the calling script would wait until the called script was done running before proceeding.

Top
#120708 - 2004-06-08 12:43 AM Re: Script Exits Unexpectedly
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, the problem is solved like stated in the scripts-forum thread.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
1 registered (morganw) and 925 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.055 seconds in which 0.023 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