Originally Posted by MME1122
By far the easiest, just tried it out myself. Easy to implement for a bunch of programs as well.
But what I like about the .vbs script is this:
I can use the same script for all of my pinned items on the Taskbar. All I have to do is Shift + right click, choose Properties, and put the following line in front of what's there already, with a space after it:
"[put full path here]\Scriptname.vbs" (including the quotes)
I named mine "Confirm.vbs". hehe I also edited the MsgBox to "Do you really want to run this?":
cmd = ""
x = WScript.Arguments.Count - 1
For i=0 To x
cmd = cmd + """" + WScript.Arguments(i) + """"
If i < x Then cmd = cmd + " "
result = MsgBox("Do you really want to open this?" + vbCrLf + vbCrLf + WScript.Arguments(0), VbYesNoCancel, "Run it?")
If result = vbYes Then WScript.CreateObject("WScript.Shell").Run cmd
Of course, I could make it say anything I want, including something hilarious, but I'm boring. :P
This is awesome. I'm glad that I didn't have to enable UAC.