Mattraks Posted April 22, 2008 Posted April 22, 2008 (edited) Delete Edited October 21, 2008 by Mattraks
zackrspv Posted April 22, 2008 Posted April 22, 2008 So i have a ftp server, how could i download a file from it if i need to enter a password and username and it only shows my files when i enter then using inetget function From the help file: Remarks Internet Explorer 3 or greater must be installed for this function to work. The URL parameter should be in the form "http://www.somesite.com/path/file.html" - just like an address you would type into your web browser. To use a username and password when connecting simply prefix the servername with "username:password@", e.g. "http://myuser:mypassword@www.somesite.com" The InetGet function works with http:// https:// and ftp:// - to change the transfer type when using ftp see the FtpBinaryMode option. So, i'd imagine the url would be like "ftp://myuser:mypassword@ftp.somesite.com" Other than that, it should be pretty simple using the information in the help file: InetGet("http://www.mozilla.org", "C:\foo.html") InetGet("http://www.autoitscript.com", "C:\mydownload.htm", 1) InetGet("ftp://ftp.mozilla.org/pub/mozilla.org/README", "README.txt", 1) ; Advanced example - downloading in the background InetGet("http://www.nowhere.com/somelargefile.exe", "test.exe", 1, 1) While @InetGetActive TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16) Sleep(250) Wend MsgBox(0, "Bytes read", @InetGetBytesRead) -_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë ë§§ëñ§ë øƒ !ïƒë.
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