For my 900th Post I only have a minor addition to Bryces answer.Hello Johnt, and welcome to the board.
Bryce writes some really great stuff. I'm sure his will work just fine. I've used a lot of his stuff and it has worked quite well for me.
If your using an older version of KiXtart v3.63 this code should work.
code:
SELECT
CASE (SUBSTR(@IPADDRESS0,1,11)) = "122.100.120"
USE G: /DELETE /PERSISTENT
USE G: "\\MYSERVER\MYSHARE"
CASE (SUBSTR(@IPADDRESS0,1,11)) = "122.100.121"
USE H: /DELETE /PERSISTENT
USE H: "\\MYSERVER\MYSHARE"
CASE (SUBSTR(@IPADDRESS0,1,11)) = "122.100.122"
USE I: /DELETE /PERSISTENT
USE I: "\\MYSERVER\MYSHARE"
CASE (SUBSTR(@IPADDRESS0,1,11)) = "122.100.123"
USE J: /DELETE /PERSISTENT
USE J: "\\MYSERVER\MYSHARE"
CASE (SUBSTR(@IPADDRESS0,1,11)) = "122.100.124"
USE K: /DELETE /PERSISTENT
USE K: "\\MYSERVER\MYSHARE"
CASE (SUBSTR(@IPADDRESS0,1,11)) = "122.100.125"
USE L: /DELETE /PERSISTENT
USE L: "\\MYSERVER\MYSHARE"
ENDSELECT
Here are some examples of the USE command from the manual.
code:
USE E: "\\SERVER\PUBLIC" /PERSISTENT
USE * /DELETE
USE E: "\\SERVER\PUBLIC" /user:Yogi /password:Bear
USE E: "\\SERVER\PUBLIC"
USE LPT1: "\\SERVER\LASER" /user:testlan\USER1
USE L: /DEL
USE LIST
USE H: @HOMESHR ; connect to user's home share
IF @ERROR = 0
H: ;
CD @HOMEDIR ; change directory to user's home directory
ENDIF
[ 01 March 2002: Message edited by: NTDOC ]