Thanks for your input Richard. Actually I just it need for testing and that is why I need to insert a liite codes to isolate of of the shares to a static drive.

$sFS3="FS-nas4000"
.
.
.

I tried to insert your function and this line
If MapDrive("N:","\\"+$sFS3+"\"+"PTKshare"+$sHidden)
EndIf

Function MapDrive($d,$p)
Use $d /delete /persistent
Use $d $p
$MapDrive=@ERROR
Exit $MapDrive
EndFunction

But it didnt work!
I know your codes is almost same with me but I dont have time so recode mine to have a similar like yours just to reflect what I want(just need it for testing).

Can you assist please how it should like to my code.

Sorry for all of these.




Edited by orlando2 (2004-12-03 04:19 PM)