.ShellExecute on Vista does not work

Posted: 08-20-2008, 01: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


Reply With Quote

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, 01: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.
Reply With Quote
LT
Guest
Posts: n/a
 
RE: .ShellExecute on Vista does not work
Posted: 08-21-2008, 08: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
>
>
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ShellExecute returns SE_ERR_ACCESSDENIED Trent Windows Vista Install & Setup 1 09-13-2006 01:44 AM
File Association for BMP not working when using ShellExecute brock.haywood@gmail.com Windows XP Embedded 1 08-28-2006 11: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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90