mIRC Homepage
Posted By: krunch 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??
Posted By: Clubfoot Re: ftp - 04/08/03 12:13 PM
do you have the /run command disabled in mirc options?
Posted By: MTec89 Re: ftp - 04/08/03 04:42 PM
i noticed u have alias -l
are you trying to manually type /plc.upload?
Posted By: krunch Re: ftp - 06/08/03 11:41 PM
thanks for the replys
run is'nt disabled
and its being run from another script hence the -l
i've tryed with out -l also
it makes the bat file and cmd file fine
i can run and it works fine just when it tryed to run it within that code it errors
© mIRC Discussion Forums