Re: pripojenie sietoveho disku

From: AleX <faklabrejle (zavinac)>
Date: 20. 07. 2005, 21:21 CEST
cau milan 
v bat subore:
pripojenie
net use Z: "\\172.17.21.7\dat karty" /delete
odpojenie
net use Z: /delete

vo vbs:
 predtym ako volas mapnetworkdrive daj
on error resume next
WshNetwork.MapNetworkDrive "Z:", "\\172.17.21.7\dat karty"
if err.number = 0 then
pokracujes dalaej .....a nezabudni dat end if

skus si dohladat error handling

On 7/20/05, MilanK <milan@kev.sk> wrote:
> pripoj.vbs :
> Dim WSHNetwork
> Set WSHNetwork = WScript.CreateObject("WScript.Network")
> WshNetwork.MapNetworkDrive "Z:", "\\172.17.21.7\dat karty"
> 
> odpoj.vbs :
> Dim WSHNetwork
> Set WSHNetwork = WScript.CreateObject("WScript.Network")
> WshNetwork.RemoveNetworkDrive "Z:"
> 
> Ten zdielany adresar ma nazov s medzerou "dat karty", to ja
> neovplyvnim...
> 
> MilanK
> 
> 
-- 
AleX
Received on Wed, 20 Jul 2005 21:21:50 +0200

This archive was generated by hypermail 2.1.8 : 20. 07. 2005, 21:22 CEST