I have a WinBatch script that uses a call function. it works just fine (outside of Access) until I try to run it using code in Access. All the wimbatch files are in the same directory.
Public Function IMX_Patientdata()
Dim CmdLine As String
CmdLine = "C:\Program Files\WinBatch\System\WinBatch.exe C:\IMX\WinBatch_Scripts\IMX.wbt"
Shell (CmdLine)
Exit Function
AppActivate "FMC Lab" ' set the focus back to Access
End Function
The script starts ok but when it gets to the call function I get a winbatch error 1400 Call File not found. It seems that function dosen't realize that the file the script is looking for is in the same directory.
Any Ideas?
Public Function IMX_Patientdata()
Dim CmdLine As String
CmdLine = "C:\Program Files\WinBatch\System\WinBatch.exe C:\IMX\WinBatch_Scripts\IMX.wbt"
Shell (CmdLine)
Exit Function
AppActivate "FMC Lab" ' set the focus back to Access
End Function
The script starts ok but when it gets to the call function I get a winbatch error 1400 Call File not found. It seems that function dosen't realize that the file the script is looking for is in the same directory.
Any Ideas?