SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




Déterminer le chemin local d'un dossier partagé

Accueil > Script > reseau > Déterminer le chemin local d'un dossier partagé

Déterminer le chemin local d'un dossier partagé

Par Ismaël LIMBADA, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 06/04/2006 vers 14h.

strPath = "\\CheminUNC"

strPath = Replace(strPath, "\\", "")

arrPath = Split(strPath, "\")

strComputer = arrPath(0)
strShare = arrPath(1)

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
      ("Select * From Win32_Share Where Name = '" & strShare & "'")

For Each objItem in colItems
      Wscript.Echo objItem.Path
Next


Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
2

Visites :
8238

1
2
3
4
5

Scripts Windows Précédent :

Déterminer le label d'une partition



Retrouvez ci-dessous les autres sections du Laboratoire Microsoft