Page 1 of 1 1
Topic Options
#200287 - 2010-10-18 05:12 PM @scriptdir weird behavior?
S0GF1 Offline
Fresh Scripter

Registered: 2010-10-18
Posts: 8
Loc: Germany
Hello,

i have been using kix for quiet some time over the past 10 years and did alot of tasks with it. Today i came across something i really cant explain and i am afraid its a totally stupid question \:\) But i think i never camp across that problem.

Version: Kix 4.61, Win2k3 Server, XP SP3 Clients

I have my script in the directory: \\servername\netlogon\logon2010\
The script starts with: logon2010\kix32.exe logon.kix

When i use @scriptdir in the script(no matter in the beginning or at the end, in or outside of a function) it always returns "U:" which is the mapped homedrive of the user.

@ldrive is "\\servername\netlogon" i used that for now...to have a temporary fix.

Is it normal that the @scriptdir contains something different then: "\\servername\netlogon\logon2010"? Or do i get the whole meaning of @scriptdir wrong?

Thanks for your help

Top
#200290 - 2010-10-18 08:06 PM Re: @scriptdir weird behavior? [Re: S0GF1]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1895
Loc: Hilversum, The Netherlands
Good question, as far as I know, the @Scriptdir should always refer to the path from where the script is executed.
So it "should" return "\\servername\netlogon" instead of "U:".
Did you try this with previous versions ?

Top
#200319 - 2010-10-21 08:43 AM Re: @scriptdir weird behavior? [Re: Arend_]
S0GF1 Offline
Fresh Scripter

Registered: 2010-10-18
Posts: 8
Loc: Germany
small update, i checked abit and i think i only have the problem while logon. I will have to investigate abit more. When i run the script from my user folder U:\something\somethingelse the @scriptdir contains the right directory, same is for local folders. All with 4.61.

I will go and check out a different Version of Kixtart tommorow when i find the time. For the testphase of the script, i run it from a subfolder of netlogon, but there shoudlnt be anything wrong with doing that? I never did it before though :P since i can remember i always had the scripts i run during logon in the \\servername\netlogon\ share. But in this case, there is a older version of kix in the netlogon folder and i didnt want to mix those.

Top
#200320 - 2010-10-21 09:19 AM Re: @scriptdir weird behavior? [Re: S0GF1]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
How are you running the logon script? At what stage in the logon processing?
Top
#200322 - 2010-10-21 10:28 AM Re: @scriptdir weird behavior? [Re: Richard H.]
S0GF1 Offline
Fresh Scripter

Registered: 2010-10-18
Posts: 8
Loc: Germany
The Script ist set under Userprofile -> Logonscript in AD. I hope thats what you where asking for.
Top
#200323 - 2010-10-21 01:41 PM Re: @scriptdir weird behavior? [Re: S0GF1]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Yes, that is what I meant.

There have been occasional reports of this problem all the way back to 2003, but I haven't seen a solution. I remember having the issue a long time back and I ended up coding around it.

What is the value of @CURDIR?

Top
#200352 - 2010-10-22 08:24 AM Re: @scriptdir weird behavior? [Re: Richard H.]
S0GF1 Offline
Fresh Scripter

Registered: 2010-10-18
Posts: 8
Loc: Germany
Okay, good to hear it is a known "thing".

I just checked and @curdir & @scriptdir both return "U:" and @ldrive returns the \\servername\netlogon\.

As you said, you had do code around it, same i did in my firstpost with the @ldrive.

Thx for your reply \:\)

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
1 registered (mole) and 405 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.115 seconds in which 0.089 seconds were spent on a total of 14 queries. Zlib compression enabled.

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