Page 3 of 3 <123
Topic Options
#163025 - 2006-06-15 05:34 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Any reason why you cannot now SHELL out to the NET USE cammand that worked so well for you?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#163026 - 2006-06-15 06:24 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
By SHELL out, do you mean use KiXtart to call a .bat file?
Top
#163027 - 2006-06-15 06:59 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
No, I mean:

Shell 'net use this that whatever'
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#163028 - 2006-06-15 07:03 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22334
Loc: OK
hmm...
so, you have kixtart called directly from the user script field or do you have a batch file calling for the kixtart?
also, what is the antivirus solution on those failing computers?
_________________________
!

download KiXnet

Top
#163029 - 2006-06-15 07:09 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22334
Loc: OK
btw, if you call open, it will reset the @error value (or at least it should).
so, as example in your original post:
Code:

if @error
$nul = open(1,"some.log",5)
$nul = writeline(1,@error + " "+@serror)
$nul = close(1)
endif



this will always give you succesfull (error = 0) return, if the file opens ok.
to get the real error to the output, use something like:
Code:

if @error
$error = @error + " - " + @serror
$nul = open(1,"some.log",5)
$nul = writeline(1,$error)
$nul = close(1)
endif

_________________________
!

download KiXnet

Top
#163030 - 2006-06-15 10:14 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
Got it, thanks. I'll see if that helps.
Top
#163031 - 2006-06-15 10:16 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
Kix is always called directly from the script field. We have Symantec on all workstations in the environment.
Top
#163032 - 2006-06-15 10:16 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
I caught that as well, and put @error into a variable so I could capture it.
Top
#163033 - 2006-06-15 10:35 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22334
Loc: OK
let us know, if you can find anything...
_________________________
!

download KiXnet

Top
Page 3 of 3 <123


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

Who's Online
0 registered and 187 anonymous users online.
Newest Members
gkustra, emnipetro, Hirze, thequeen, ameliaryan
17642 Registered Users

Generated in 0.033 seconds in which 0.01 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