Shell error #5 under Vista 64-bit

  • Thread starter Thread starter Mark Hammer
  • Start date Start date
M

Mark Hammer

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
 
Back
Top