Network üzerinde paylaşıma açılmış olan bir klasörü clientlara Map
yapmak için aşağıdaki Batch File veya VBS Script’i kullanabilirsiniz.
1)Batch File
Net use Z: \\1.1.1.1\share /user:domain\username password
2)VBS Script
Option Explicit
Dim objNetwork, strRemotePath1
Dim strDriveLetter1
strDriveLetter1 = "M:"
strRemotePath1 = "\\1.1.1.1\share"
Set objNetwork = CreateObject(“WScript.Network”)
objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
Hiç yorum yok :
Yorum Gönder