Norman Zhang
(Fresh Scripter)
2003-11-27 09:16 PM
Refresh Mapping

Hi,

I just copied some files from an old server to a new server. I changed the mapping to the new server. However, for some users they are still mapped to the old server. Doesn't KiXtart refreshes all mapping during logon?

Regards,
Norman


Howard Bullock
(KiX Supporter)
2003-11-27 09:19 PM
Re: Refresh Mapping

KiXtart does what you program the script to do. If the users have persistently mapped drives you will have to delete the old mapping using the "/persistent" switch before remapping the drive. Use @error and @serror to check the status of your USE commands.

Norman Zhang
(Fresh Scripter)
2003-11-27 11:10 PM
Re: Refresh Mapping

I never used the /persistent switches in my mapping though.

Regards,
Norman

if ingroup('MYDOMAIN\Proj ID Team')
use g: '\\idserver\graphics'
use i: '\\idserver\id'
endif

if ingroup('MYDOMAIN\Proj Mech Team')
use m: '\\idserver\mech'
endif

use h: '\\smbserver\'+@userid
use j: '\\smbserver\docup'
use k: '\\smbserver\docs'
use l: '\\smbserver\libs'
use p: '\\smbserver\proj'
use q: '\\prnserver\pdf'
use s: '\\bakserver\ais'
use t: '\\smbserver\transfer'
settime '\\smbserver'


LonkeroAdministrator
(KiX Master Guru)
2003-11-27 11:26 PM
Re: Refresh Mapping

for some users someone may have used persistent.
that is, someone at some point has done a manual map perhaps.
that defaults to persistent.
that is, before mapping the drive, you must delete the old map.
and if it is there, it is persistent so you need to del it with persistent switch.


Norman Zhang
(Fresh Scripter)
2003-11-28 10:23 PM
Re: Refresh Mapping

Yeah. Sorry I forgot the switch

use s: '\\smbserver\ais' /del
use s: '\\bakserver\ais'

Regards,
Norman


Les
(KiX Master)
2003-11-28 10:26 PM
Re: Refresh Mapping

Note quite
Code:
use s: /delete /persistent
use s: '\\bakserver\ais'