Simple File Uploader (FTP)

By [M]ike on Jul 24, 2007

The script has simple usage and can be manipulated for a series of tasks such as uploading channel logs, trivia scores etc.

Usage:
/upload - Uploads the file
/setftp - opens some input boxes for you to configure the FTP settings. (If already set then will open your ftp.ini in notepad)
/viewftp - opens a window displaying your FTP information

Example Code

on *:TEXT:!UploadLogs:#: {
  /writeini -n ftp.ini ftp dir public_html/logs/
  /upload logs/log.txt
  notice $nick Uploaded log.txt to http://www. $+ $readini(ftp.ini, n, ftp, host)  $+ $remove($readini(ftp.ini, n, ftp, dir),public_html)
}

Any problems/suggestions feel free to comment below.

Comments

Sign in to comment.
tolga   -  Feb 05, 2009

ok thanks.

 Respond  
LucSatise   -  Feb 02, 2008

wow this worked great! thanks

 Respond  
Noutrious   -  Aug 09, 2007

It shows unable to open \'ftp\' - what program for windows should i download to fix that?

 Respond  
Freckle   -  Jul 27, 2007

alias connect {
/sockopen dgftp
}
on 1:SOCKOPEN:dgftp: {
sockwrite -nt dgftp USER
sockwrite -nt dgftp PASS
}
alias ftp {
/sockwrite -nt dgftp $1-
}

these are parts of scripts i made recently. with these u can get rid of the cmd. just use /ftp send $1- and stuff

 Respond  
[M]ike   -  Jul 25, 2007

Okay thanks for suggestions, edited the script.

 Respond  
Noutrious   -  Jul 25, 2007

-n switch for run command - it doesn\'t hide it, but at least minimize.. :)

 Respond  
[M]ike   -  Jul 24, 2007

Yeah, it\'s very buggy, I\'ll replace it with Regex hopefully tommorow. About the CMD, without using a batch file it\'d be extremely difficult (For me anyway) to create a script that uploads. The only other solution I see is having a upload.php file on a remote server and then using that.
My Simple File Downloader is much more of a success! :)

 Respond  
Noutrious   -  Jul 24, 2007
 Respond  
Noutrious   -  Jul 24, 2007

Now when using it, actually it bothers that the cmd popups all the time.

 Respond  
Noutrious   -  Jul 24, 2007

Nice, good for me. :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.