File Uploader
Quite handy if you have a webserver and you dont want to use a turdy uploading thing like imageshack.
Also, the URL to the file will be copied to your clipboard after its uploaded.
Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ;
; Created by Stewie! ;
; ;
; Instructions: ;
; Drag and drop files to the .exe to upload them ;
; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include <FTPEx.au3>
$file = $CmdLine[1]
If $file Then
$parse = StringSplit($CmdLine[1], "\")
$num = $parse[0]
$filename = $parse[$num]
$host = "example.com" ; Hostname of the webserver (Can be a domain name or an IP)
$user = "username" ; FTP Username
$pass = "password" ; FTP Password
$public = "/public_html/" ; If you dont have a /public_html/ leave this as blank ("")
$folder = "/uploads/" ; This is the folder where your files will upload to
$open = _FTP_Open("MySQL Upload")
If $open Then
$conn = _FTP_Connect($open, $host, $user, $pass, 0, 21)
If $conn Then
$ftpp = _FTP_FilePut($conn, $CmdLine[1], $public & $folder & $filename)
If $ftpp Then
_FTP_Close($open)
ClipPut("http://" & $host & $folder & $filename)
EndIf
EndIf
EndIf
EndIf
How To Use- Open a text file.
- Drag your file (.mp3, .jpg, .txt etc.) to the compiled .exe file.
- Sit back and wait.
- Paste the URL thats in your clipboard to your friends!
__________________