Using FTP through mIRC without sockets.

Contributed by Mavric-

How to connect to FTP in mIRC through batch files and not sockets


by: Mavric-


In this tutorial I am gonna tell you how to use batch files to send items to your FTP server instead of sockets.

1. First of all, you need to have a web FTP server, which is not hard to find.

2. Second, you must create the batch file, best place is in C:\mIRC or wherever your base mIRC directory is.

In this batch file, you need to have 3 lines, create a text file and open it and add these lines:

@echo off
ftp -i -s:
cmd.txt
exit


Now comes the fun part, when you actually get to add the FTP commands, which arent hard, but hey, some people get confused. Make another text file, and name it anything, remember, whatever you name it to must match the text file in the batch file.

In this file, you need to add the following 6 lines of text:

ftp
open ftp.hostname.com
ftpusername
ftppassword

here you add whatever directory changes you want (i.e. cd dirhere)
put fileyouwanttotransfer.html
quit

This is just what you want the batch file to do when it is open, which in this case, it opens the FTP hostname you specified and stored the HTML file we wanted to transfer.

You can easily make aliases to carry out jobs like this, to make game ladders or anything, here is an example:

alias transfer {
var %textfile = C:\mIRC\cmd.txt
write %textfile This is my sample transfer alias!
write %textfile Yep...
run transfer.bat
}

See? Easy as that. If you have any more questions please email me at [email protected].
All content is copyright by mircscripts.org and cannot be used without permission. For more details, click here.