Page 1 of 1 1
Topic Options
#1195 - 1999-12-17 09:57 AM IF INGROUP **HELP**
Darren Offline
Fresh Scripter

Registered: 1999-12-17
Posts: 7
Loc: Valley Stream, NY
Hi..everyone i am new to kix start and I am having trouble getting my win95 clent to map to there drives according to there GROUP, I have install the Kix service on my domain controllers and shared the users home drive as e.g \\a320pdc\john$...here is what I have done

a320.bat is called in the user profile.. @Echo off
%0\..\Kix32.exe script1.scr
EXIT

script1.scr
? "Setting DOS variables..."
SHELL "winset.exe USERNAME=@USERID"
SHELL "Winset.exe ADDRESS=@ADDRESS"
SHELL "Winset.exe COMPUTER=@WKSTA"
SHELL "Winset.exe DOMAIN=@DOMAIN"
SHELL "Winset.exe COMMENT=@COMMENT"
SHELL "Winset.exe FULLNAME=@FULLNAME"
SHELL "Winset.exe HOMEDIR=@HOMEDIR"
SHELL "Winset.exe HOMESHR=@HOMESHR"
SHELL "Winset.exe LSERVER=@LSERVER"
SHELL "Winset.exe PRIV=@PRIV"
? "Done."
Call a3201.bat
EXIT

a3201.bat
$drive= "\\a320pdc\"+@userid+chr(36)
use u: $drive


if INGROUP ("320Bellatlantic")
use f: "\\A320NTS07\SYS"
use n: "\\A320NTS07\Bellatlantic"
use r: "\\A320NTS07\CTS$"

endif
when the a3201.bat runs i am getting syntax error at if ingroup statment and bad commannd or file name at use command.
can some please help Thanks Darrend.

_________________________
DarrenD

Top
#1196 - 1999-12-17 10:21 AM Re: IF INGROUP **HELP**
Anonymous
Unregistered


Darren

Try this

@Echo off
%0\..\Kix32.exe script1.scr
EXIT

script1.scr
? "Setting DOS variables..."
SHELL "winset.exe USERNAME=@USERID"
SHELL "Winset.exe ADDRESS=@ADDRESS"
SHELL "Winset.exe COMPUTER=@WKSTA"
SHELL "Winset.exe DOMAIN=@DOMAIN"
SHELL "Winset.exe COMMENT=@COMMENT"
SHELL "Winset.exe FULLNAME=@FULLNAME"
SHELL "Winset.exe HOMEDIR=@HOMEDIR"
SHELL "Winset.exe HOMESHR=@HOMESHR"
SHELL "Winset.exe LSERVER=@LSERVER"
SHELL "Winset.exe PRIV=@PRIV"
? "Done."
Call a3201.scr
EXIT

a3201.scr
$drive= "\\a320pdc\"+@userid+chr(36)
use u: $drive


if INGROUP ("320Bellatlantic")
use f: "\\A320NTS07\SYS"
use n: "\\A320NTS07\Bellatlantic"
use r: "\\A320NTS07\CTS$"

endif

It will work if it is in Kixtart's script extension .scr or .kix (I hope!)

Rgds


------------------
Don Davidson
Network Engineer
http://www.insight-media.co.uk


Top
#1197 - 1999-12-17 10:50 AM Re: IF INGROUP **HELP**
Darren Offline
Fresh Scripter

Registered: 1999-12-17
Posts: 7
Loc: Valley Stream, NY
Don..Thanks a lot it works great!! Now if I can only get it to say something like good morning and it diplays the user name date and time puause for 10 seconds it will be great. do you know how i can di that.
Thanks again don!!
_________________________
DarrenD

Top
#1198 - 1999-12-18 12:38 AM Re: IF INGROUP **HELP**
Anonymous
Unregistered


Darren

I don't do most of what you are after but I am certain if you search this board the answer will appear!

I have seen loads of examples like that.

Search for Good Morning or something similar?

Good hunting.

Rgds

------------------
Don Davidson
Network Engineer
http://www.insight-media.co.uk


Top
#1199 - 1999-12-18 12:43 AM Re: IF INGROUP **HELP**
Anonymous
Unregistered


Darren

Here's a small sample that should get you going.

Up to you which script you place this in
;------------------------------------
;Displays text in box, small font
small

;Bright Blue Box on Black b/g
Color b+/n

;Box size
Box (3,20,17,61,FULL)

;Bright White Text on Black b/g
Color w+/n

AT (10,22) "Welcome " @FULLNAME
AT (12,22) "Please wait for Login Script Execution"
AT (13,22) "Progress"

;----------------------------------

Get the jist?
manual explains a lot of the above.

Good luck.
Rgds

------------------
Don Davidson
Network Engineer
http://www.insight-media.co.uk


Top
#1200 - 1999-12-27 12:39 AM Re: IF INGROUP **HELP**
gdalinis Offline
Fresh Scripter

Registered: 1999-12-07
Posts: 27
Here is an excerpt from my login script that will help with the greeting messages etc.:

if @time > 18:00:00
?"Good Evening @fullname."
else
if @time < 12:00:00
?"Good Morning @fullname."
else
?"Good Afternoon @fullname."
endif
endif

?"Here is some information about your session:"
?
?
?"Today is: @day @month @mdayno, @year"
?"The current server time is: @time."
?"Your current Privalege is: @priv."
?"Station Identification: @sid."
?"Your current userid is: @userid."
?"Current Computer Name: @wksta."
?"Your full name is: @fullname."
?"Login Domain is: @domain."
?"The Server you logged into: @lserver."
?"Intranet Name is: @hostname."
?"Your IP Address is: @ipaddress0."
?
?"@ydayno days have passed this year."
$daysleft = 365 - @ydayno
$newyear = 1 + @year
?"$daysleft days left until $newyear"
sleep 10

Hope this helps!!

------------------
Gus Dalinis
Systems Analyst

_________________________
Gus Dalinis Systems Analyst

Top
#1201 - 1999-12-27 04:10 AM Re: IF INGROUP **HELP**
PaulMoxey Offline
Getting the hang of it

Registered: 1999-07-22
Posts: 90
Loc: Villawood, NSW, Australia
Oh ohh...
Your not "Y2k" compliant there Gus
In fact, your not Leap year compliant....
Whats going tohappen with "$daysleft = 365 - @ydayno" in 2000 or other leap years.

So... I'm pedantic.. Realisticly though.. I just had to have a dig - your average user doesn't count the number of days....

------------------
Paul Moxey
POS & Senior Network Administrator
Taubmans Pty Ltd
Paul_Moxey@taubmans.com.au

_________________________
Paul Moxey POS & Senior Network Administrator BarloworldCoatings (AUST) Pty Ltd

Top
#1202 - 2000-01-11 11:44 AM Re: IF INGROUP **HELP**
Anonymous
Unregistered


Darren,

Windows 95/98 is not able to read group so it cannot tell if it is to look for a local or global group. In the manual (I think page 56 or under the INGROUP command) you will have to use the = 0, = 1, or = 2 to let win 95/98 know if the group it is looking for is global or local.

So your INGROUP COMMAND should look like this

IF INGROUP("group name") = 1
USE F: "\\server name\share name"

endif

remember to use the number applicable to the group type ie. local or global.

Wilton

Top
#1203 - 2000-01-21 08:24 AM Re: IF INGROUP **HELP**
Anonymous
Unregistered


Hi everybody,
I want to check if somebody is in a group,
everythink is fine, but if I check a group with a dash like "group-member" it doesn't work.

Thanks for help

Carsten

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
0 registered and 1114 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.097 seconds in which 0.058 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