ftp - 04/08/03 11:11 AM
Code:
alias -l plc.upload { write $xdir1 $+ \tranz.bat @echo off write $xdir1 $+ \tranz.bat ftp -i -s:cmd write $xdir1 $+ \tranz.bat exit write $xdir1 $+ \cmd open $readini($xdir,ftp,host) $readini($xdir,ftp,port) write $xdir1 $+ \cmd $readini($xdir,ftp,uname) write $xdir1 $+ \cmd $readini($xdir,ftp,pword) write $xdir1 $+ \cmd quote PASV $iif($readini($xdir,ftp,path) != $null,write $xdir1 $+ \cmd cd $readini($xdir,ftp,path)) write $xdir1 $+ \cmd put %plc.wfile write $xdir1 $+ \cmd quit run $xdir1 $+ \tranz.bat ;.remove $xdir1 $+ \tranz.bat ;.remove $xdir1 $+ \cmd }
is what I have atm, writes all the info okay but when it runs the bat file it seems to just error and stop and not upload the file
but then i exce the file it runs and uploads the file not a prob
what am I forgeting??