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.
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! :)