I'm looking to transfer files locally, to the ftp site and a specific directory.
Also, here is 2 more snippets of code of this helps:
1. This is the .bat file that coincides with 1
@echo off
call setenv SCRL
ftp -s:%comdir%getSCRL.ftp
if errorlevel 1 goto error
if not errorlevel 0 goto error
goto exit
:error
echo error ftping SCRL data...
:exit
This is the ftp file that coicides with 2
open osftp.onesource.com
FTP_SCRL
scrl7275
bin
dir
disconnect
quit
Main Topics
Browse All Topics





by: usachrisk1983Posted on 2007-09-25 at 09:49:33ID: 19957128
Step 1 is your batch file. Should work as is (replace user & password with actual user and password).
Step 2 is the script that runs after you FTP in. Are you looking to download (get) files from the FTP server or upload (put) files on the FTP server?