Desktop Management Scripts - Special Folders
List the Items in the Internet Explorer History FolderList the Items in the My Pictures Folder
List the Items in the My Recent Documents Folder
List Items in the My Computer Folder
List the Items in the Network Neighborhood Folder
List Items in the Programs Folder
List Items in the Program Files Folder
List Items in the Recycle Bin Folder
List Items in the System32 Folder
List Items in the Startup Folder
List Items in the Start Menu Folder
List Items in the Administrative Tools Folder
List Items in the All Users Application Data Folder
List Items in the All Users Desktop Folder
List Items in the All Users Programs Folder
List Items in the All Users Start Menu Folder
List Items in the All Users Startup Folder
List Items in the Application Data Folder
List Items in the SendTo Folder
List Items in the Common Files Folder
List Items in the Control Panel Folder
List Items in the Desktop Folder
List Items in the Fonts Folder
List Items in the Internet Cookies Folder
List Items in the Internet Favorites Folder
List Items in the Local Application Data Folder
List Items in the My Network Places Folder
List Items in the My Documents Folder
List Items in the My Music Folder
List Items in the Network Connections Folder
List Items in the Printers and Faxes Folder
List Items in the Print Neighborhood Folder
List Items in the My Videos Folder
List Items in the Templates Folder
List Items in the Temporary Internet Files Folder
List Items in the User Profile Folder
List Items in the Windows Folder
List the Path to the Internet Explorer Folder
You can use any of the VBScript programs below in ActiveXperts Network Monitor. Click here for an explanation about how to include scripts in ActiveXperts Network Monitor.
List the Items in the Internet Explorer History Folder
Reports the path to the Internet Explorer History 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.
Const LOCAL_SETTINGS_HISTORY = &H22& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(LOCAL_SETTINGS_HISTORY) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List the Items in the My Pictures Folder
Reports the path to the My Pictures 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.
Const MY_PICTURES = &H27& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(MY_PICTURES) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List the Items in the My Recent Documents Folder
Reports the path to the My Recent Documents 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.
Const MY_RECENT_DOCUMENTS = &H8& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(MY_RECENT_DOCUMENTS) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the My Computer Folder
Reports the path to My Computer, and then lists any items found there. For Windows NT 4.0 and Windows 98, this script requires Windows Script Host 5.1 and Internet Explorer 4.0 or later.
Const MY_COMPUTER = &H11& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(MY_COMPUTER) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List the Items in the Network Neighborhood Folder
Reports the path to the Network Neighborhood, and then lists any items found there. For Windows NT 4.0 and Windows 98, this script requires Windows Script Host 5.1 and Internet Explorer 4.0 or later.
Const NETHOOD = &H13& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(NETHOOD) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Programs Folder
Reports the path to the Recycle Bin, and then lists any items found there. For Windows NT 4.0 and Windows 98, this script requires Windows Script Host 5.1 and Internet Explorer 4.0 or later.
Const PROGRAMS = &H2& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(PROGRAMS) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Program Files Folder
Reports the path to the Program Files 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.
Const PROGRAM_FILES = &H26& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(PROGRAM_FILES) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Recycle Bin Folder
Reports the path to the Recycle Bin, and then lists any items found there. For Windows NT 4.0 and Windows 98, this script requires Windows Script Host 5.1 and Internet Explorer 4.0 or later.
Const RECYCLE_BIN = &Ha& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(RECYCLE_BIN) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the System32 Folder
Reports the path to the System32 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.
Const SYSTEM32 = &H25& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(SYSTEM32) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Startup Folder
Reports the path to the Startup 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.
Const STARTUP = &H7& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(STARTUP) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Start Menu Folder
Reports the path to the Start Menu 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.
Const START_MENU = &Hb& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(START_MENU) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Administrative Tools Folder
Reports the path to the Administrative Tools 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.
Const ADMINISTRATIVE_TOOLS = &H2f& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(ADMINISTRATIVE_TOOLS) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the All Users Application Data Folder
Reports the path to the All Users Application Data 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.
Const ALL_USERS_APPLICATION_DATA = &H23& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(ALL_USERS_APPLICATION_DATA) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the All Users Desktop Folder
Reports the path to the All Users Desktop 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.
Const ALL_USERS_DESKTOP = &H19& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(ALL_USERS_DESKTOP) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the All Users Programs Folder
Reports the path to the All Users Programs 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.
Const ALL_USERS_PROGRAMS = &H17& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(ALL_USERS_PROGRAMS) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the All Users Start Menu Folder
Reports the path to the All Users Start Menu 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.
Const ALL_USERS_START_MENU = &H16& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(ALL_USERS_START_MENU) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the All Users Startup Folder
Reports the path to the All Users Startup 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.
Const ALL_USERS_STARTUP = &H18& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(ALL_USERS_STARTUP) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Application Data Folder
Reports the path to the Application Data 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.
Const APPLICATION_DATA = &H1a& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(APPLICATION_DATA) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the SendTo Folder
Reports the path to the SendTo 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.
Const SENDTO = &H9& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(SENDTO) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Common Files Folder
Reports the path to the Common Files 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.
Const COMMON_FILES = &H2b& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(COMMON_FILES) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Control Panel Folder
Reports the path to the Windows Control Panel, and then lists the individual applications installed. For Windows NT 4.0 and Windows 98, this script requires Windows Script Host 5.1 and Internet Explorer 4.0 or later.
Const CONTROL_PANEL = &H3& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(CONTROL_PANEL) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Desktop Folder
Reports the path to the Desktop 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.
Const DESKTOP = &H10& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(DESKTOP) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Fonts Folder
Reports the path to the Fonts folder, and then lists any fonts 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.
Const FONTS = &H14& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(FONTS) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Internet Cookies Folder
Reports the path to the Internet Cookies 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.
Const COOKIES = &H21& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(COOKIES) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Internet Favorites Folder
Reports the path to the Internet Favorites 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.
Const FAVORITES = &H6& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(FAVORITES) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Local Application Data Folder
Reports the path to the Local Application Data 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.
Const LOCAL_APPLICATION_DATA = &H1c& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(LOCAL_APPLICATION_DATA) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the My Network Places Folder
Reports the path to the My network Places 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.
Const MY_NETWORK_PLACES = &H12& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(MY_NETWORK_PLACES) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the My Documents Folder
Reports the path to the My Documents 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.
Const MY_DOCUMENTS = &H5& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(MY_DOCUMENTS) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the My Music Folder
Reports the path to the My Music folder, and then lists any items found in that folder.
Const MY_MUSIC = &Hd& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(MY_MUSIC) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Network Connections Folder
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.
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
List Items in the Printers and Faxes Folder
Reports the path to the Printers and Faxes 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.
Const PRINTERS_AND_FAXES = &H4& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(PRINTERS_AND_FAXES) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Print Neighborhood Folder
Reports the path to the Print Neighborhood 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.
Const PRINTHOOD = &H1b& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(PRINTHOOD) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the My Videos Folder
Reports the path to the My Videos folder, and then lists any items found in that folder.
Const MY_VIDEOS = &He& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(MY_VIDEOS) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Templates Folder
Reports the path to the Templates 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.
Const TEMPLATES = &H15& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(TEMPLATES) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Temporary Internet Files Folder
Reports the path to the Temporary Internet Files 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.
Const TEMPORARY_INTERNET_FILES = &H20& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(TEMPORARY_INTERNET_FILES) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the User Profile Folder
Reports the path to the logged-on user's User Profiles 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.
Const USER_PROFILE = &H28& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(USER_PROFILE) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List Items in the Windows Folder
Reports the path to the Windows 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.
Const WINDOWS = &H24& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(WINDOWS) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name Next
List the Path to the Internet Explorer Folder
Reports the path to the Internet Explorer special folder. For Windows NT 4.0 and Windows 98, this script requires Windows Script Host 5.1 and Internet Explorer 4.0 or later.
Const INTERNET_EXPLORER = &H1& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(INTERNET_EXPLORER) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path