If you are using VBS and is deleting some shortcuts after an installation and then adding your own shortcuts you have maybe problem with having the desktop refreshed just like it automatically is when manually deleting something on the desktop. If the desktop is not refreshed the new icon will be placed after the already deleted icon, not on the same place.
Here is a tips how to do it using VBScript:
' Refresh the desktop to remove the deleted shortcuts correctly
set oShell= createobject("shell.application")
set oDesktop = oShell.Namespace(0)
oDesktop.self.invokeVerb "R&efresh"
AutoCAD, AutoCAD Architecture (ACA/ADT), Revit Architecture, Revit MEP, Revit Structure, BIM, CAD, AutoLISP, VBA, VB, VB.NET, C#, databases, Access, SQL Server, FlexNet (FLEXlm), license usage reporting, software design, development, customization, integration...
Saturday, August 13, 2005
VBScript tips to refresh the desktop
Subscribe to:
Post Comments (Atom)
Some of the latest blog posts
Contact Us
| About JTB World |
Website General Terms of Use |
Privacy Policy
^ Top of page
© 2004- JTB World. All rights reserved.
Restored comments
ReplyDeleteAnonymous said...
The "R&efresh" verb is not available in my version of shell32.dll (Windows XP).
September 06, 2006
JTB World said...
I've been able to run this code on XP.
September 06, 2006