|
hi guys, i use this script to find out the ip address of a computer and map drive accordingly. however occasionally it doesnt map the drives. can i get kix to output errors to a log file so that on the occasions when a user reports incorrect mapping i can try to figure out why?
Thanks in advance
"BREAK ON $1st=TRIM(SPLIT(@IPADDRESS0,'.')[0]) $2nd=TRIM(SPLIT(@IPADDRESS0,'.')[1]) $3rd=TRIM(SPLIT(@IPADDRESS0,'.')[2]) $4th=TRIM(SPLIT(@IPADDRESS0,'.')[3])
IF $3rd = 0 ?"Adding Borehamwood Drive Mappings..." use G: '\\millen\g_drive' use H: '\\millen\_root' use P: '\\millen\@USERID' Exit Endif
IF $3rd = 1 ?"Adding Alconbury Drive Mappings..." use G: '\\cerberus\g_drive' use P: '\\cerberus\users\@USERID' ? IF @INWIN = 1 ADDPRINTERCONNECTION ("\\titania\hp2300n") = 0 IF @INWIN = 1 ADDPRINTERCONNECTION ("\\titania\hp2300n (2)") = 0 ? "Adding printers..." Endif cls Exit Endif "
|