cat-bomb here is my batches:
@ECHO off
CD C:\2pc
if(%1)==(t) ftp -i -s:ftptext.bat
if(%1)==(d) ftp -i -w:9000 -s:rcvcsvfl.bat
if(%1)==(d) start excel.exe c:\2pc\AS400FLE.csv
if(%1)==(ut) ftp -i -w:9000 -s:ftputext.bat
if(%1)==(uf) ftp -i -w:9000 -s:upload.bat
exit
Open 192.168.0.1
QUSER
Z9876
cd qsys.lib/dist400d.lib/
get FTPBINFO.file c:\2pc\rcvcsvfl.bat
quit
OPEN 192.168.0.1
QUSER
Z9876
GET /FTPFILES/SA153448 c:\2pc\AS400FLE.csv (replace
QUIT
The first batch is my control batch, the second batch updates the next batch with what I want to download and the third batch does the actual download. This allows the user to download the information from the I Series and have it open in Excel. We do it this way so that we know who is downloading information and by opening in Excel the user does not have to go look for the file on there computer. If you can see something wrong or can think of a easier solution it would be greatly appreciated.