MarcelN
(Lurker)
2002-04-09 01:49 PM
What's wrong...?

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?


JochenAdministrator
(KiX Supporter)
2002-04-09 01:52 PM
Re: What's wrong...?

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


Richard H.Administrator
(KiX Supporter)
2002-04-09 01:55 PM
Re: What's wrong...?

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.


LonkeroAdministrator
(KiX Master Guru)
2002-04-09 01:56 PM
Re: What's wrong...?

jpols, long time no see...
where have you been dude?


MarcelN
(Lurker)
2002-04-09 02:17 PM
Re: What's wrong...?

Thanks guys. The reply from Jochen worked perfectly!

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

Tnx!


MarcelN
(Lurker)
2002-04-09 02:19 PM
Re: What's wrong...?

Thanks guys. The reply from Jochen worked perfectly!

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

Tnx!


Les
(KiX Master)
2002-04-09 02:26 PM
Re: What's wrong...?

I have an explanation in the following FAQ

Why does the console display zeros and ones (amongst others)?


JochenAdministrator
(KiX Supporter)
2002-04-09 04:07 PM
Re: What's wrong...?

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.


MCA
(KiX Supporter)
2002-04-10 07:09 AM
Re: What's wrong...?

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.


LonkeroAdministrator
(KiX Master Guru)
2002-04-10 07:22 AM
Re: What's wrong...?

if he sign with us military forces and got killed at afganistan?

Kdyer
(KiX Supporter)
2002-04-10 07:28 AM
Re: What's wrong...?

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 ]


MarcelN
(Lurker)
2002-04-10 02:30 PM
Re: What's wrong...?

I get it!

Tnx