|
|
|||||||
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. |
||||||||
|
|
|||||||
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:
|
||||||||
|
|
|||||||
Make sure you wrap the entire parm in quotes. |
||||||||
|
|
|||||||
sure thing if inGroup("admin") net use k: \\new-server\share endif |
||||||||
|
|
|||||||
More like this Code: If InGroup("domain\admin") |
||||||||
|
|
|||||||
do I need quotes around the - or is that fine |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
What part of "the entire parm" do you not understand? |
||||||||
|
|
|||||||
Got it to work thanks for the help!! |