N
N Welch
I'm trying to run a BAT file to FTP data from an Access application to a
mainframe computer for further processing.
I have created the FTP Script within my Access program - not a problem.
I have created a BAT file outside of Access that resides in a directory on
my harddrive.
When I use the following code and watch the execution in the DOS window, I'm
seeing C:\Documents and Settings\welchn\my documents ... then my BAT file.
The FTP Script file is located in a different directory and it is referred to
in the BAT file.
Shell "cmd.exe /C ""C:\databill\FTPCTI.bat"""
I've tried Shell Environ$("COMSPEC") & "c:\databill\FTPCTI.bat" - no data is
uploaded with this either.
The receiving file on the mainframe is built but no data is being
transferred to it. Yet when I run the cmd.exe outside the Access program and
run the BAT file, everything works fine and data is uploaded to the mainframe
dataset.
What am I doing wrong in Access?
Thanks
Nancy Welch
App Dev
KC IT Central
mainframe computer for further processing.
I have created the FTP Script within my Access program - not a problem.
I have created a BAT file outside of Access that resides in a directory on
my harddrive.
When I use the following code and watch the execution in the DOS window, I'm
seeing C:\Documents and Settings\welchn\my documents ... then my BAT file.
The FTP Script file is located in a different directory and it is referred to
in the BAT file.
Shell "cmd.exe /C ""C:\databill\FTPCTI.bat"""
I've tried Shell Environ$("COMSPEC") & "c:\databill\FTPCTI.bat" - no data is
uploaded with this either.
The receiving file on the mainframe is built but no data is being
transferred to it. Yet when I run the cmd.exe outside the Access program and
run the BAT file, everything works fine and data is uploaded to the mainframe
dataset.
What am I doing wrong in Access?
Thanks
Nancy Welch
App Dev
KC IT Central