Link to home
Start Free TrialLog in
Avatar of deross
deross

asked on

Shell with Windows Vista and UAC

I would like to use the "Shell" command in VB 6 to run an executable file in Windows Vista.  When I run my VB program I get the message Runtime error '5' "Invalid procedure call or argument".  It seems that the User Account Control in Windows Vista will not allow the Shell command.

Any help would be appreciated.

Thank you,

Don Ross
Avatar of verbal11
verbal11

Have you tried running your script as administrator?
Do a google on TweakUAC. I haven't used it myself as yet (my UAC is off) but it might help.
I also ran TweakVI to make my account work the same as the real admin account.

At least try turning off the UAC to ensure that it is the cause of your problem  :)
ASKER CERTIFIED SOLUTION
Avatar of Merete
Merete
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deross

ASKER

Verbal11:

How do I run my script as an administrator?