invokeVerb method in Vista
- From: alexwu99@xxxxxxxxx
- Date: Thu, 8 May 2008 20:54:09 -0700 (PDT)
Hi,
I have read answers from you about scripting in windows and some of
the really useful to me!
I have a question about vbscripting in windows vista.
I have written a vbscript to pin a exe file on desktop to start menu
by using "invokeVerb("P&in to Start Menu").
Set objShell = CreateObject("Shell.Application")
strdesktopFld = objShell.SpecialFolders("Desktop")
Set objFolder = objShell.Namespace(strdesktopFld&"\")
Set objFolderItem = objFolder.ParseName("calc.exe")
objFolderItem.invokeVerb("P&in to Start Menu")
msgbox "wait.."
I have tried to use msgbox or wscript.sleep 1000 at the end but it
just nothing happen.
This script is work in XP and I just wonder if there is any scripting
tricks in vista.
Bests,
Alex
p.s. I have put this question in "microsoft.public.scripting.wsh"
groups.google
.
- Follow-Ups:
- Re: invokeVerb method in Vista
- From: Alex K. Angelopoulos
- Re: invokeVerb method in Vista
- Prev by Date: Re: Can't connect to remote computer.
- Next by Date: Re: devstudio automation DTE2 interface from WSH JScript?
- Previous by thread: Can't connect to remote computer.
- Next by thread: Re: invokeVerb method in Vista
- Index(es):
Relevant Pages
|