Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Determine the Local Path to a Shared FolderContent of Determine the Local Path to a Shared Folder.vbsMD5 Hash: D21BD05FBFA9215BAF851DA8F2CFCF05 |
||
strPath = "\\atl-fs-01\public"
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 | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |