>>> 'RUN /N net use Y: \\nn.nn.nn.nn\directory_name'
>>>
>>>
>>>>>if !directory('y:') >> wshshell=CREATEOBJECT('wscript.shell') >> wshnetwork=CREATEOBJECT('wscript.network') >> wshnetwork.MapNetworkDrive('y:','\\myserver\mypath',.f.,'Username','Password') >> wshnetwork=.null. >> release wshnetwork >>Endif>
<pre> wshshell=CREATEOBJECT('wscript.shell') wshnetwork=CREATEOBJECT('wscript.network') if directory('y:') wshnetwork.RemoveNetworkDrive('Y:') endif wshnetwork.MapNetworkDrive('y:','\\myserver\mypath',.f.,'Username','Password') wshnetwork=.null. release wshnetwork Endif