B
Brad
I am trying to use Access VBA to initiate a small utility EXE file. The
Shell command is new to me. I ran into something that I don’t understand. I
have tried to boil it down as much as I can.
~~~~~~~~~~~
This works fine.
Shell "C:\TEST\Fired.exe"
~~~~~~~~~
The following command does not work. I receive a Run-time error “5†–
Invalid procedure call or argument.
Shell "C:\Documents and Settings\Fired.exe"
I have spent quite a bit of time on the internet to see if this is something
that others have run into. I have not yet found an explanation.
I am guessing that there is something “Special†about the “Documents and
Settings†folder that causes a conflict with the Shell command. I can move
the EXE file to a folder that does not have “Documents and Settings†in the
path, but I would like to better understand what is causing this problem.
Thanks,
Brad
Shell command is new to me. I ran into something that I don’t understand. I
have tried to boil it down as much as I can.
~~~~~~~~~~~
This works fine.
Shell "C:\TEST\Fired.exe"
~~~~~~~~~
The following command does not work. I receive a Run-time error “5†–
Invalid procedure call or argument.
Shell "C:\Documents and Settings\Fired.exe"
I have spent quite a bit of time on the internet to see if this is something
that others have run into. I have not yet found an explanation.
I am guessing that there is something “Special†about the “Documents and
Settings†folder that causes a conflict with the Shell command. I can move
the EXE file to a folder that does not have “Documents and Settings†in the
path, but I would like to better understand what is causing this problem.
Thanks,
Brad