z0mgItsJohn Posted July 25, 2008 Posted July 25, 2008 This Little System Allows A User 2 Search And Download A File Form Your Website... Source : #Include <File.Au3> Global $Download_Host Func _Download_File ($File_Name, $File_Type, $Host) $Download_Host = $Host INetGet ($Download_Host & '/List.txt', @ScriptDir & '/List.txt') Sleep ('500') $Count = _FileCountLines (@ScriptDir & '/List.txt') For $Array = '1' To $Count $Read_Name = FileReadLine (@ScriptDir & '/List.txt', $Array) If $Read_Name = $File_Name Then _Download ($Array, $Read_Name, $File_Type) Next EndFunc Func _Download ($Line_Number, $File_Name, $File_Type) INetGet ($Download_Host & '/Links.txt', @ScriptDir & '/Links.txt') $Read_Link = FileReadLine (@ScriptDir & '/Links.txt', $Line_Number) INetGet ($Read_Link, $File_Name & $File_Type) EndFunc Func OnAutoItExit () FileDelete (@ScriptDir & '/Links.txt') FileDelete (@ScriptDir & '/List.txt') EndFuncAll You Got 2 Do Is Add These Files 2 You Website..List.txt : * DON'T ADD FILE TYPE AT THE END *CODEFile 1 File 2File 3Links.txt :CODEhttp://www.webiste-here.com/file 1.file typehttp://www.webiste-here.com/file 2.file typehttp://www.webiste-here.com/file 3.file typeMake Since? xDEnjoy Feel Free 2 Post Comments Bug.. Etc. Latest Projects :- New & Improved TCP Chat
z0mgItsJohn Posted July 25, 2008 Author Posted July 25, 2008 (edited) Example :#Include <_File_Download.Au3> _Download_File ('Bid Tracker v1.0','.Au3','http://members.cox.net/data.base')It Works I Made It So You Can Kinda Have A File Data-Base From Auto-It List.txt : * On http://members.cox.net/data.base *CODEBid Tracker v1.0Cool Calculator v1.0Random Colors v1.0Links.txt : * On http://members.cox.net/data.base *CODEhttp://members.cox.net/data.base/downloads/Bid%20Tracker%20v1.0.au3http://members.cox.net/data.base/downloads...ator%20v1.0.au3http://members.cox.net/data.base/downloads...lors%20v1.0.au3 Edited July 25, 2008 by John2006 Latest Projects :- New & Improved TCP Chat
z0mgItsJohn Posted July 26, 2008 Author Posted July 26, 2008 Please Post Options ^^ Latest Projects :- New & Improved TCP Chat
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now