moto822
(Lurker)
2005-05-16 11:09 PM
In need of help!!!

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.

Kdyer
(KiX Supporter)
2005-05-16 11:13 PM
Re: In need of help!!!

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

Les
(KiX Master)
2005-05-16 11:36 PM
Re: In need of help!!!

Make sure you wrap the entire parm in quotes.

moto822
(Lurker)
2005-05-16 11:58 PM
Re: In need of help!!!

sure thing

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


NTDOCAdministrator
(KiX Master)
2005-05-17 12:04 AM
Re: In need of help!!!

More like this

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



moto822
(Lurker)
2005-05-17 12:11 AM
Re: In need of help!!!

do I need quotes around the - or is that fine

NTDOCAdministrator
(KiX Master)
2005-05-17 12:19 AM
Re: In need of help!!!

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


Les
(KiX Master)
2005-05-17 02:15 AM
Re: In need of help!!!

What part of "the entire parm" do you not understand?

moto822
(Lurker)
2005-05-17 03:34 PM
Re: In need of help!!!

Got it to work thanks for the help!!