The Script Library
Menu
The Script Library
Browse
Search
Submit
Reference
About
Contact

Link to Us
Index
Display

Home VBScript Desktop Management Special Folders




List Items in the Network Connections Folder

 

Description
Reports the path to the Network Connections folder, and then lists any items found in that folder. For Windows NT 4.0 and Windows 98, this script requires Windows Script Host 5.1 and Internet Explorer 4.0 or later.

 

Author/Submitter
Microsoft Scripting Guys

 

Supported Platforms

Windows Server 2003

Yes

Windows XP

Yes

Windows 2000

Yes

Windows NT 4.0

Yes

Windows 98

Yes



 

VBScript Code


Const NETWORK_CONNECTIONS = &H31& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(NETWORK_CONNECTIONS) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next

Was this helpful? If so, Please Share it by clicking a button on the left the screen..






Search The Library


Search String

Script Language