mIRC Home    About    Download    Register    News    Help

Print Thread
#39612 04/08/03 11:11 AM
Joined: Dec 2002
Posts: 94
K
krunch Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Dec 2002
Posts: 94
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??


Lets get dirty
#39613 04/08/03 12:13 PM
Joined: Aug 2003
Posts: 17
C
Pikka bird
Offline
Pikka bird
C
Joined: Aug 2003
Posts: 17
do you have the /run command disabled in mirc options?

#39614 04/08/03 04:42 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
i noticed u have alias -l
are you trying to manually type /plc.upload?


http://MTec89Net.com
irc.freenode.net #MTec89Net
#39615 06/08/03 11:41 PM
Joined: Dec 2002
Posts: 94
K
krunch Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Dec 2002
Posts: 94
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


Lets get dirty

Link Copied to Clipboard