Sunday, July 02, 2006

Show lost Windows XP Recycle Bin

I was on a corporate network today and accidentally deleted some files (what, that's never happened to you?).

The Standard Operating Environment (SOE) that was defined doesn't have the recycle bin on the desktop (don't know why) and the SOE is so locked down that you can't do the right-mouse click on the desktop trick to turn it on - the option doesn't appear. So I had to find a way of getting to the Recycle Bin.

Digging through Google I found no simple VBScript that would do the job for me. So Here's 3 lines of VBScript that will open up the Recycle Bin for Windows XP - even if it does not have an icon on the desktop. You have to be able to save this VBScript to a directory to run it.

Running the script will open Explorer showing the Recycle Bin.

Cut the lines below into a VBScript file. Note the long line of code may wrap.

'~~~~ RecycleBin.VBS~~~~
set WshShell = CreateObject("WScript.Shell")
dim lReturnValue
lReturnValue= WshShell.run("explorer.exe /root,::{645FF040-5081-101B-9F08-00AA002F954E}", 1)
Set WshShell = nothing
'~~~~ RecycleBin.VBS~~~~

Enjoy!

Image Resizer

Here's the executable code for the Resizer described in an earlier post. It's a single MSI file that installs on your machine.It requires the .Net 1.1 Runtimes.You can download it here.