#210520 - 2015-08-13 04:27 AM
Trying run Kixtart on my company
|
Luke_Chim
Fresh Scripter
Registered: 2015-08-13
Posts: 10
Loc: Hong Kong
|
Hello All,
I want to use Kixtart to repast all bat script and I have copy some script on website but still fail, May I show you my kixtart.kix script and let me get back where of my error?
I have add "KIX32 /F" on my AD profile logon script, AD function level is Windows 2000,
My Kixtart code:
dim $i, $Text, $Drives, $Queues, $Groups, $Grp, $ExistQ, $x, $local, $remote
$Groups = EnumDomainGroups("intra")
$ExistQ = EnumPrinterConnections
; Department-specific settings
select
;--------------------------------------------------------------------------------
case ingroup("kixtest")
$Drives = "J:", "\\vditd002\install",
$Queues = "\\XEROXPRINTSRV\FX-Universal",
NetworkPrinters($Queues, 1, $ExistQ)
;--------------------------------------------------------------------------------
endselect
exit
Edited by Allen (2015-08-13 06:30 AM) Edit Reason: added code tags
|
|
Top
|
|
|
|
#210533 - 2015-08-14 05:34 AM
Re: Trying run Kixtart on my company
[Re: Lonkero]
|
Luke_Chim
Fresh Scripter
Registered: 2015-08-13
Posts: 10
Loc: Hong Kong
|
Thanks Lonkero,
for your suggestion I have modify the code of kixtart.kix but seems not work on current version. use back to old version can connect network driver and printer.
show my current code:
dim $i, $Text, $Drives, $Queues, $Groups, $Grp, $ExistQ, $x, $local, $remote
;$Groups = EnumDomainGroups("intra")
;$ExistQ = EnumPrinterConnections
select
;--------------------------------------------------------------------------------
case ingroup("APVC4475_ADV056R_BW")
ADDPRINTERCONNECTION ("\\FXPRINTSVR1\APVC4475_ADV056R_BW$")
;--------------------------------------------------------------------------------
;--------------------------------------------------------------------------------
case ingroup("APVC4475_ADV056R_COLOR")
ADDPRINTERCONNECTION ("\\FXPRINTSVR1\APVC4475_ADV056R_COLOR$")
;--------------------------------------------------------------------------------
;--------------------------------------------------------------------------------
case ingroup("APVC4475_ADV058R_BW")
ADDPRINTERCONNECTION ("\\FXPRINTSVR1\APVC4475_ADV058R_BW$")
;--------------------------------------------------------------------------------
;--------------------------------------------------------------------------------
case ingroup("APVC4475_ADV058R_COLOR")
ADDPRINTERCONNECTION ("\\FXPRINTSVR1\APVC4475_ADV058R_COLOR$")
;--------------------------------------------------------------------------------
; Department-specific settings
;--------------------------------------------------------------------------------
case ingroup("kixtest")
USE J: "\\vditd002\install"
ADDPRINTERCONNECTION ("\\XEROXPRINTSRV\FX-Universal")
;--------------------------------------------------------------------------------
endselect
exit
Ok. I don't know did you get anything done yet, but, you should download kixtart and open the manual on use and addprinterconnection as well as ingroup()
Kixtart is so easy it will blow your mind away.
|
|
Top
|
|
|
|
#210548 - 2015-08-18 04:16 AM
Re: Trying run Kixtart on my company
[Re: Lonkero]
|
Luke_Chim
Fresh Scripter
Registered: 2015-08-13
Posts: 10
Loc: Hong Kong
|
hello Lonkero
I change some to If and endIf for some DEPT much loop with them, it is okay.
May I know more for kixtart.kix, If want type cmd command should below?
Do you belong to more than one group? Select is first match only.
|
|
Top
|
|
|
|
#210551 - 2015-08-18 07:15 AM
Re: Trying run Kixtart on my company
[Re: Lonkero]
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4562
Loc: USA
|
What if you only cared a little?
|
|
Top
|
|
|
|
#210555 - 2015-08-19 06:17 AM
Re: Trying run Kixtart on my company
[Re: Lonkero]
|
Luke_Chim
Fresh Scripter
Registered: 2015-08-13
Posts: 10
Loc: Hong Kong
|
Hello Lonkero,
Sure modify CMD.EXE to %comspec% completed, Thank you
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 874 anonymous users online.
|
|
|