#81582 - 2003-05-02 11:00 AM
command line only execution
|
creutz
Fresh Scripter
Registered: 2000-06-14
Posts: 32
Loc: Helsinki, Finland
|
Anybody ever needed to run only one line of kix code? Think, if you could do KIX32.EXE "USE X: \\SERVER\SHARE" or anything
is this stupid or clever
creutz ps if you think this is stupid; how do I get @primarygroup information into a logon script?
|
|
Top
|
|
|
|
#81584 - 2003-05-02 02:28 PM
Re: command line only execution
|
Lee Wilmott
Starting to like KiXtart
Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
|
Creutz,
If you want to use @PRIMARYGROUP in your logon script then write the value to an environment variable.
I hope this helps,
Lee
|
|
Top
|
|
|
|
#81586 - 2003-05-02 04:29 PM
Re: command line only execution
|
creutz
Fresh Scripter
Registered: 2000-06-14
Posts: 32
Loc: Helsinki, Finland
|
Yes NET USE X: \\SERVER\SHARE is working fine IF you know what SHARE stands for but my users belong to different primary groups and therfore gets different X: linkend to them. I tried NET USER username /DOMAIN but it dows not skow the primary group; therefore I have to use 1 line of kix code.
I solved the oneliner in a different way; The batchfile doing the stuff writes a temp kix script file which is then deleted.
creutz ps Lonkero said that KIX will never have this kind of command line support. Any reason why not?
|
|
Top
|
|
|
|
#81588 - 2003-05-02 05:16 PM
Re: command line only execution
|
creutz
Fresh Scripter
Registered: 2000-06-14
Posts: 32
Loc: Helsinki, Finland
|
Because it's unnecessary? One can always solve it in plain KiXtart. OK, IŽll change from plain batch to kix, which I should have ages ago. Why would a commandline-KiXtart help you if you don't even know the share? I would have done USE X: \\SERVER\@PRIMARYGROUP
no hard feelings thanks anyway
creutz
|
|
Top
|
|
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
1 registered
(mole)
and 1300 anonymous users online.
|
|
|