Hi m8s,I have a huge loginscript that I want to rewrite and I have so many questions
to ask. But the thing I am figuring out right now is how to make a fuction
for the counting of errors if they occur and to place a new line below the other one.
Coz now the login script is too large and not neat..
Thanks..
code:
$Row = 12 ; What row to place the cursor on
$funk = 0 ; Holds error Numbers
AT ($Row,4) "-> Mapping Home Directory to Drive H: ..."
USE H: /DELETE
USE H: @HOMESHR
IF @ERROR = 0
sleep 1
Color g+/b
AT ($Row,70) " OK.."
$Row = $Row + 1
Color y+/b
ELSE
$funk = $funk + 1
Color r+/b
AT ($Row,70) " Error.."
Color y+/b
$Row = $Row + 1
ENDIF
sleep 1
nlypublic
AT ($Row,4) "-> Mapping Public Directory to Drive P: ..."
USE P: /DELETE
USE P: "\\TNT\Public"
IF @ERROR = 0
Color g+/b
AT ($Row,70) " OK.."
$Row = $Row + 1
Color y+/b
ELSE
$funk = $funk + 1
Color r+/b
AT ($Row,70) " Error.."
$Row = $Row + 1
Color y+/b
ENDIF
AT ($Row,4) "-> Synchronizing Local Clock with Logon Server ..."
SETTIME @LSERVER
Color g+/b
AT ($Row,70) " Ok.. "
$Row = $Row + 1
Color y+/b
USE * /DELETE /PERSISTENT
OhYeah, I also check the client for existence of McAfee virusscanner if not exist
then I do a silent install of the scanner. But I cant get the script to wait until the setup
is completed. The install is rebooting the client after installation. And I get kixscript errors
about to close kix first. Using Kix 3.62.
Any help is appreciated.
After the rewrite I will post the complete script for the people looking for examples.
Greets,
^REL^