Shell error #5 under Vista 64-bit

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.
 
M

Mark Hammer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top