I am seeking a method of copying files from and ftp location using VBA. I have a batch file that does what I need, but prefer a VBA solution. I have tried using VBA to call a batch file that calls a script, but the window opens and then closes, without having copied the files.
Any help and ideas are greatly appreciated.
Batch file
ECHO OFF REM ************************************************************************************************ REM SCRIPT NAME ::: scriptOIB.txt is called by this bat file--> OIB.bat REM MODULE ::: This script is used to download the file from FTP Site to the Source Folder. REM AUTHOR ::: Ken Van Huss REM DESCRIPTION ::: This script is used to download the source files from FTP Site for REM ::: RM staff REM DATE WRITTEN ::: 7-Sept-2011 REM VERSION ::: 1.0 7-Sept-2011 --> Initial Version. REM ************************************************************************************************* ftp -s:ScrptCpy.txt
text file called from above is “ScrptCpy”
open 202.301.30.192 myfilesKen001 blahblahblah cd inboundtest prompt off ascii lcd c:_Files mget *.* bye