I am trying to launch a Dos Batch file from access which ftp's a file from our mainframe to a text file on a server. I have a line of code that runs the batch file, Call Shell("batchfile", 1), this runs fine, but the problem I am having is that once the batch file is done, I then need to import the text file it just created. I have the code to do this but it runs immediately after I start the batch file and doesn't give the file transfer time to complete. Is there any way from access to know when the dos batch file is complete prior to moving to the next line of code. I was thinking of just using a pause but because I am running it over a network the time the transfer takes could very.
Thanks in advance
Phil
Thanks in advance
Phil