Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.79 KB | None | 0 0
  1. $ServerName = "ftpconnection.se"
  2. $Username = "user1"
  3. $Password = "password1"
  4. $RemoteFile = "file.txt"
  5. $SaveLocalFile = "c:\file.txt"
  6.  
  7. $InternetOpen = DllCall("wininet.dll", "long", "InternetOpen", "str", "My FTP Control", "long", 1, "str", "", "str", "", "long", 0)
  8.  
  9. $InternetConnect = DllCall("wininet.dll", "long", "InternetConnect", "long", $InternetOpen, "str", $ServerName, "int", 0, "str", $Username, "str", $Password, "long", 1, "long", 0, "long", 0)
  10.  
  11. $FTPget = DllCall("wininet.dll", "int", "FtpGetFile", "long", $InternetConnect, "str", $RemoteFile, "str", $SaveLocalFile, "int", 0, "long", 0, "long", 0, "long", 0)
  12.  
  13. $CloseCC = DllCall("wininet.dll", "int", "InternetCloseHandle", "int", $InternetOpen)
  14. $CloseCC = DllCall("wininet.dll", "int", "InternetCloseHandle", "int", $InternetConnect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement