Find all shortcuts (VBScript)
This code can be found in
Chapter 8 of Windows XP Cookbook
Purchase XP Cookbook or Networking Recipes for only $25 plus shipping! While supplies last.
Find out how to download all of the VBScript code from this site.
' From the book "Windows XP Cookbook"
' ISBN: 0596007256
' ------ SCRIPT CONFIGURATION ------
strComputer = "."
' ------ END CONFIGURATION ---------
set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
set colSCs = objWMI.InstancesOf("Win32_ShortcutFile")
for each objSC in colSCs
WScript.Echo "Name: " & objSC.Name
WScript.Echo "Target: " & objSC.Target
WScript.Echo
intCount = intCount + 1
next
WScript.Echo "Total shortcuts: " & intCount
|
This code has been viewed 1044 times.
|
New from the creators of TechTasks.com:
StatSheet.com
|