Shell error #5 with Vista 64 bit

MarkHammer

Registered User.
Local time
Today, 14:21
Joined
May 6, 2008
Messages
17
I am getting Error Number 5: Invalid Procedure Call or Argument upon executing the shell command.

Strangely, this happens only on a Vista Ultimte 64-bit computer. The exact same command in the same procedure/program works without error when run under either Windows XP or Vista 32-bit.

Also, the very same command line which fails on the 64-bit Vista machine works fine when run from a shortcut on the desktop of the same 64-bit Vista machine.

I have set MSAccess.exe to Run As Administrator, and have tried turning User Account Control off, with no luck.

The command line I am trying to execute is this:
"C:\Program Files (x86)\Common Files\Sagekey Software\StartAccess_2002.exe" /runtime "C:\Program Files\RetreatTracker\RetreatTracker.mde"

Both the .exe and the .mde files exist at the paths shown.

My VBA command which gets the error looks like this:
Shell cmdLine, vbMaximizedFocus

Got me stumped. Ideas appreciated!

--Mark Hammer
Lake Oswego, Oregon, U.S.
 
Additional info: must be a security or permissions issue. When I moved the .mde file out of the Program Files folder to another location, it worked.

--Mark Hammer
 
Had the same issue in Win 7 64 (RC1) -- same resolution too. Thanks for your post.
 

Users who are viewing this thread

Back
Top Bottom