#200287 - 2010-10-18 05:12 PM
@scriptdir weird behavior?
|
S0GF1
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
|
|
|
|
#200319 - 2010-10-21 08:43 AM
Re: @scriptdir weird behavior?
[Re: Arend_]
|
S0GF1
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
|
|
|
|
#200322 - 2010-10-21 10:28 AM
Re: @scriptdir weird behavior?
[Re: Richard H.]
|
S0GF1
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
|
|
|
|
#200352 - 2010-10-22 08:24 AM
Re: @scriptdir weird behavior?
[Re: Richard H.]
|
S0GF1
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
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(mole)
and 405 anonymous users online.
|
|
|