R
Ray
I am trying to call a batch file from a command button in an access form.
My VBA is:
Dim RetVal
RetVal = Shell("C:\Member Management 4\mm4backup.bat", 1)
This was not working so I put a PAUSE in the batch file to see what was
going on.
The batch file works correctly when directly executed from within its home
folder and the batch header looks like this:
C:\Member Management 4\Pause
When I try to run it from the command button it does not shell to the
correct folder but instead the batch file header shows as
C:\Documents and Settings\Ray|My Documents\Pause
How do I fix this?
Any help gratefully appreciated.
My VBA is:
Dim RetVal
RetVal = Shell("C:\Member Management 4\mm4backup.bat", 1)
This was not working so I put a PAUSE in the batch file to see what was
going on.
The batch file works correctly when directly executed from within its home
folder and the batch header looks like this:
C:\Member Management 4\Pause
When I try to run it from the command button it does not shell to the
correct folder but instead the batch file header shows as
C:\Documents and Settings\Ray|My Documents\Pause
How do I fix this?
Any help gratefully appreciated.