home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 May
/
W2KPRK.iso
/
scripts.cab
/
kick.kix
< prev
next >
Wrap
Text File
|
1999-11-04
|
4KB
|
148 lines
; KICK.SCR
;
; KiXtart Sample script
;
; 24-Aug-1995
;
; Note : This code sample is provided for demonstration purposes only.
; Microsoft makes no warranty, either express or implied,
; as to its usability in any given situation.
;
break on
color b/n
BOX(0,0,24,79,grid)
$LINE = 3
color y+/n
AT( 1,30) "User Info"
$X = "WUSERID" $Y = @WUSERID GOSUB DISP
$X = "USERID" $Y = @USERID GOSUB DISP
$X = "LDOMAIN" $Y = @LDOMAIN GOSUB DISP
$X = "FULLNAME" $Y = @FULLNAME GOSUB DISP
$X = "COMMENT" $Y = @COMMENT GOSUB DISP
$X = "PRIV" $Y = @PRIV GOSUB DISP
$X = "PWAGE" $Y = @PWAGE GOSUB DISP
$X = "MAXPWAGE" $Y = @MAXPWAGE GOSUB DISP
$X = "LONGHOMEDIR" $Y = @LONGHOMEDIR GOSUB DISP
$X = "HOMEDIR" $Y = @HOMEDIR GOSUB DISP
$X = "HOMEDRIVE" $Y = @HOMEDRIVE GOSUB DISP
$X = "HOMESHR" $Y = @HOMESHR GOSUB DISP
$X = "LANROOT" $Y = @LANROOT GOSUB DISP
$X = "SID" $Y = @SID GOSUB DISP
$X = "PRIMARYGROUP" $Y = @PRIMARYGROUP GOSUB DISP
$X = "LSERVER" $Y = @LSERVER GOSUB DISP
$X = "RSERVER" $Y = @RSERVER GOSUB DISP
$X = "USERLANG" $Y = @USERLANG GOSUB DISP
color y+/n
at (23,32) "<any key to continue>"
get $x
CLS
color b/n
BOX(0,0,24,79,grid)
color g/n
$Line = 4
color y+/n
AT( 1,30) "Group Membership"
COLOR g/n
AT ( $Line , 5 ) "Global Groups"
COLOR w+/n
$Count = 0
DO
$Y = EnumGroup( $Count )
IF Len( $Y )
AT ( $Line + $Count , 19 ) $Y
$Count = $Count + 1
ENDIF
UNTIL Len( $Y ) = 0
$X = "" $Y = "" GOSUB DISP
$Line = $Line + $Count
COLOR g/n
$Count = 0
AT ( $Line + $Count , 5 ) "Local Groups"
COLOR w+/n
DO
$Y = EnumLocalGroup( $Count )
IF Len( $Y )
AT ( $Line + $Count , 19 ) $Y
$Count = $Count + 1
ENDIF
UNTIL Len( $Y ) = 0
color y+/n
at (23,32) "<any key to continue>"
get $x
CLS
color b/n
BOX(0,0,24,79,grid)
color g/n
$LINE = 3
color y+/n
AT( 1,30) "Network Info"
$X = "LM" $Y = @LM GOSUB DISP
$X = "WKSTA" $Y = @WKSTA GOSUB DISP
$X = "ADDRESS" $Y = @ADDRESS GOSUB DISP
$X = "DOMAIN" $Y = @DOMAIN GOSUB DISP
$X = "LDRIVE" $Y = @LDRIVE GOSUB DISP
$X = "RAS" $Y = @RAS GOSUB DISP
color y+/n
at (23,32) "<any key to continue>"
get $x
? ?
CLS
color b/n
BOX(0,0,24,79,grid)
color g/n
$LINE = 3
color y+/n
AT( 1,30) "Miscellaneous Info"
$X = "KIX" $Y = @KIX GOSUB DISP
$X = "DOS" $Y = @DOS GOSUB DISP
$X = "INWIN" $Y = @INWIN GOSUB DISP
$X = "CURDIR" $Y = @CURDIR GOSUB DISP
$X = "SCRIPTDIR" $Y = @SCRIPTDIR GOSUB DISP
$X = "STARTDIR" $Y = @STARTDIR GOSUB DISP
$X = "SYSLANG" $Y = @SYSLANG GOSUB DISP
$X = "DATE" $Y = @DATE GOSUB DISP
$X = "TIME" $Y = @TIME GOSUB DISP
$X = "DAY" $Y = @DAY GOSUB DISP
$X = "MDAYNO" $Y = @MDAYNO GOSUB DISP
$X = "WDAYNO" $Y = @WDAYNO GOSUB DISP
$X = "YDAYNO" $Y = @YDAYNO GOSUB DISP
$X = "MONTH" $Y = @MONTH GOSUB DISP
$X = "MONTHNO" $Y = @MONTHNO GOSUB DISP
$X = "YEAR" $Y = @YEAR GOSUB DISP
color y+/n
at (23,32) "<any key to continue>"
get $x
? ?
color w/n
EXIT 0
:DISP
COLOR g/n
AT ( $LINE , 5 ) $X
color w+/n
AT ( $LINE , 19) $Y
$LINE = $LINE + 1
RETURN