Page 1 of 1 1
Topic Options
#139816 - 2005-05-16 11:09 PM In need of help!!!
moto822 Offline
Lurker

Registered: 2005-05-16
Posts: 4
I am a new user to kixtart and I am writing a IF statement logon script. The problem I am having is when I logon I get an expression error. The only thing off hand I can think of is my server name has a dash "new-server". Do dashes cause problems? do I need to go new"-"server or new(-)server? some help would be awesome.
Top
#139817 - 2005-05-16 11:13 PM Re: In need of help!!!
Kdyer Offline
KiX Supporter
*****

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

Welcome to the site!

Can you please post the piece of script that is giving you trouble?

It will help in the diagnosis of your issue.

To answer your question, there should be no issue with a dash in the same.
Code:

If @wksta='yoursystem-1'
; -- do something
ENDIF





Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#139818 - 2005-05-16 11:36 PM Re: In need of help!!!
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Make sure you wrap the entire parm in quotes.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#139819 - 2005-05-16 11:58 PM Re: In need of help!!!
moto822 Offline
Lurker

Registered: 2005-05-16
Posts: 4
sure thing

if inGroup("admin")
net use k: \\new-server\share
endif

Top
#139820 - 2005-05-17 12:04 AM Re: In need of help!!!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11571
Loc: CA
More like this

Code:
If InGroup("domain\admin")
use k: "\\new-server\share"
EndIf


Top
#139821 - 2005-05-17 12:11 AM Re: In need of help!!!
moto822 Offline
Lurker

Registered: 2005-05-16
Posts: 4
do I need quotes around the - or is that fine
Top
#139822 - 2005-05-17 12:19 AM Re: In need of help!!!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11571
Loc: CA
No, just like it is shown in the manual.

There is also a .chm help file of the manual over on ScriptLogic site that is good to have and reference.

http://sclogic.vo.llnwd.net/o2/downloads/kix/kixtart422.chm


Edited by NTDOC (2005-05-17 12:21 AM)

Top
#139823 - 2005-05-17 02:15 AM Re: In need of help!!!
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What part of "the entire parm" do you not understand?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#139824 - 2005-05-17 03:34 PM Re: In need of help!!!
moto822 Offline
Lurker

Registered: 2005-05-16
Posts: 4
Got it to work thanks for the help!!
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 176 anonymous users online.
Newest Members
diefnet, Arogya, gkustra, emnipetro, Hirze
17644 Registered Users

Generated in 0.031 seconds in which 0.01 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