Witto
Posts: 187
Joined: 9/28/2004 Status: offline
|
Dear tuxhoover,@ECHO OFF
IF EXIST Z: NET USE Z: /DELETE > NUL
IPCONFIG | FIND "10.76.128." > NUL
IF ERRORLEVEL 1 GOTO NotInNet1
NET USE Z: \\server1\%username% > NUL
:NotInNet1
IPCONFIG | FIND "10.76.129." > NUL
IF ERRORLEVEL 1 GOTO NotInNet2
NET USE Z: \\server2\%username% > NUL
:NotInNet2 Maybe you better consider using VBScript or KiXtart like suggested by bphilhower. If you are willing to pay, I will send you my bank account number . Kind regards,
< Message edited by Witto -- 6/25/2005 4:36:54 AM >
|