mIRC Home    About    Download    Register    News    Help

Print Thread
#49760 16/09/03 06:15 PM
Joined: Sep 2003
Posts: 84
T
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 84
Hi all i'm will make a ftp-client in mIRC only if i will upload a file whit sockwrite -n STOR trivia.html
than hi will upload a file named trivia.html only how can i do this with the context in the file?

Last edited by Turbo_boy; 16/09/03 07:01 PM.
#49761 16/09/03 07:23 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
I'd start with

a] learning the ins and outs of sockets
try here: http://helpdesk.zaz.net/documents/socks.php
b] learn the ins and outs of the FTP protocol
try here: http://war.jgaa.com/ftp/?cmd=rfc


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#49762 16/09/03 07:44 PM
Joined: Sep 2003
Posts: 84
T
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 84
i will look there thnx ;-)

#49763 16/09/03 07:58 PM
Joined: Sep 2003
Posts: 84
T
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 84
if you want to see the script it like this:

alias ftp-start {
.sockclose ftp
.sockopen ftp ftp.tripodnet.nl 21
}
on *:sockread:ftp:{
sockread %temp
echo -at %temp
if (220 isin %temp) {
sockwrite -nt ftp USER username
}
if (331 isin %temp) {
sockwrite -nt ftp PASS password
}
if (230 isin %temp) {
sockwrite -nt ftp DELE TRIVIA.HTML
sockwrite -nt ftp PORT $replace($ip,$chr(46),$chr(44)) $+ ,21,21
}
if (200 isin %temp) {
sockwrite -n ftp STOR TRIVIA.HTML
}
}
on *:sockread:bla:{
var %temp
sockread %temp
echo -a %temp
}

#49764 16/09/03 08:42 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Sometimes there's a much simpler way...

#49765 17/09/03 09:50 AM
Joined: Sep 2003
Posts: 84
T
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 84
thnx for that link now its working creat laugh


Link Copied to Clipboard