I forgot to explicitly mention that the normal “Safely Remove Hardware” icon in the system tray notification area sometimes disappears.
Today, I bumped in such a system, so I was glad I had a reference explaining how manually call the “Safely Remove Hardware” dialog to solve it.
But now I had this dumb icon:
So here are the full steps, including icon.
1. Add a shortcut with this command line:
[script sourcecode=’cscript’]
RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll
[/sourcecode]
2. Change the icon to take icons from this DLL:
[script sourcecode=’cscript’]
%SystemRoot%\system32\hotplug.dll
[/sourcecode]
3. Name the shortcut “Safely Remove Hardware”
So, now you have a nice shortcut with the correct.
This shortcut works, even when it is gone from the system tray:
BTW: Rob van der Woude has a nice page with rundll32 scripts.
–jeroen





