Page 1 of 1 1
Topic Options
#64353 - 2002-04-09 01:49 PM What's wrong...?
MarcelN Offline
Lurker

Registered: 2002-04-09
Posts: 4
Hi guys,

This is a part of my login script:
==================================================
IF ingroup ("SPI\deelnemers") or ("SPI\docenten")
use F: "\\SPI01\Algemeen"
use G: "\\SPI01\Appsdata"
use H: "\\SPI01\Diskettes"
use I: "\\SPI02\ECDL"
use X: "\\SPI01\@userid$"
WriteValue ("HKEY_CURRENT_USER\Control panel\Desktop","ScreenSaveActive","0","REG_SZ")
setwallpaper("\\SPI01\Algemeen\Albeda.bmp")
ENDIF
==================================================

When I login as somybody who isn't a member of deelnemrs or docenten, it stil makes de drive mappings...

Can some one tell my what's wrong with this script?

Top
#64354 - 2002-04-09 01:52 PM Re: What's wrong...?
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Marcel,

change :

IF ingroup ("SPI\deelnemers") or ("SPI\docenten")

into :

IF ingroup ("SPI\deelnemers") or ingroup ("SPI\docenten")

(should already solve it [Big Grin] )

Jochen
_________________________



Top
#64355 - 2002-04-09 01:55 PM Re: What's wrong...?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Also change
code:
use X: "\\SPI01\@userid$"

to
code:
use X: "\\SPI01\@userid$$"

It probably hasn't bitten you yet, but fixing it now will save you tearing your hair out in frustration at some point in the future.

Top
#64356 - 2002-04-09 01:56 PM Re: What's wrong...?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jpols, long time no see...
where have you been dude?
_________________________
!

download KiXnet

Top
#64357 - 2002-04-09 02:17 PM Re: What's wrong...?
MarcelN Offline
Lurker

Registered: 2002-04-09
Posts: 4
Thanks guys. The reply from Jochen worked perfectly!

Why is it better to use @userid$$ instead od @useris$?

Tnx!

Top
#64358 - 2002-04-09 02:19 PM Re: What's wrong...?
MarcelN Offline
Lurker

Registered: 2002-04-09
Posts: 4
Thanks guys. The reply from Jochen worked perfectly!

Why is it better to use @userid$$ instead of @useris$?

Tnx!

Top
#64359 - 2002-04-09 02:26 PM Re: What's wrong...?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I have an explanation in the following FAQ

Why does the console display zeros and ones (amongst others)?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#64360 - 2002-04-09 04:07 PM Re: What's wrong...?
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Lonk,

I wasn't out of town but had been cut off all proxies due to a move of our team ...

Glad to be back online [Big Grin]

J.
_________________________



Top
#64361 - 2002-04-10 07:09 AM Re: What's wrong...?
MCA Offline
KiX Supporter
*****

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

People are missing you when you aren't there for some days.
Knows anybody where MartijnL is. Since November 2001 no
reactions to 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
#64362 - 2002-04-10 07:22 AM Re: What's wrong...?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
if he sign with us military forces and got killed at afganistan?
_________________________
!

download KiXnet

Top
#64363 - 2002-04-10 07:28 AM Re: What's wrong...?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
MarcelN,

I am not sure if your question was answered with regard to - @userid$$ ..

Remember, $ usually denotes a variable, where the $$ looks for a hidden share, for example.

- Kent

[ 10 April 2002, 07:28: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#64364 - 2002-04-10 02:30 PM Re: What's wrong...?
MarcelN Offline
Lurker

Registered: 2002-04-09
Posts: 4
I get it!

Tnx

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, 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.062 seconds in which 0.026 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