Skip to content

Instantly share code, notes, and snippets.

@mindplay-dk
Created June 17, 2011 21:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mindplay-dk/1032382 to your computer and use it in GitHub Desktop.
Save mindplay-dk/1032382 to your computer and use it in GitHub Desktop.
Restart the Windows 7 Sidebar (for easier Gadget development)
Set WMI = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2")
For Each sidebar in WMI.ExecQuery("Select * from Win32_Process Where Name = 'sidebar.exe'")
sidebar.Terminate()
Next
sidebarPath = "C:\Program Files\Windows Sidebar\sidebar.exe"
CreateObject("Wscript.Shell").Run """" & sidebarPath & """", 0, False
WScript.Quit
@Sin-Shadow-Fox
Copy link

Can someone translate this into english for us non-tech-savvy people?

@mindplay-dk
Copy link
Author

Huh?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment