.ShellExecute on Vista does not work

Posted: 08-20-2008, 12:05 AM
The following works properly on XP but not on Vista. The error message is
"The parameter is incorrect".

Set objSh = CreateObject("Shell.Application")
objSh.ShellExecute "notepad.exe", "" , "", "runas", 1

Thanks,
LT


.ShellExecute on Vista does not work


Responses to ".ShellExecute on Vista does not work"

Paul Montgomery
Guest
Posts: n/a
 
Re: .ShellExecute on Vista does not work
Posted: 08-20-2008, 12:11 AM
On Tue, 19 Aug 2008 17:05:00 -0700, LT <LT@discussions.microsoft.com>
wrote:
>The following works properly on XP but not on Vista. The error message is
>"The parameter is incorrect".
>
>Set objSh = CreateObject("Shell.Application")
>objSh.ShellExecute "notepad.exe", "" , "", "runas", 1
>
>Thanks,
>LT
Thank you very much for that info. I will save it for future
reference.
LT
Guest
Posts: n/a
 
RE: .ShellExecute on Vista does not work
Posted: 08-21-2008, 07:01 PM
What I meant was if anyone could provide any help regarding this issue.

"LT" wrote:
> The following works properly on XP but not on Vista. The error message is
> "The parameter is incorrect".
>
> Set objSh = CreateObject("Shell.Application")
> objSh.ShellExecute "notepad.exe", "" , "", "runas", 1
>
> Thanks,
> LT
>
>
 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
ShellExecute returns SE_ERR_ACCESSDENIED Trent Windows Vista Install & Setup 1 09-13-2006 12:44 AM
File Association for BMP not working when using ShellExecute brock.haywood@gmail.com Windows XP Embedded 1 08-28-2006 10:28 PM
ShellExecute returns No Association Saaby Windows XP Embedded 2 02-17-2004 07:44 AM
ShellExecute Command not working Saaby Windows XP Embedded 8 02-13-2004 09:57 PM
Msiexec/ShellExecute BN Windows XP Embedded 2 11-24-2003 08:10 PM