Guest User

Untitled

a guest
Feb 20th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. echo open 192.168.1.64 21> ftp.txt
  2. echo anonymous>> ftp.txt
  3. echo ftp@ftp.com>> ftp.txt
  4. echo bin >> ftp.txt
  5. echo get test.txt >> ftp.txt
  6. echo bye >> ftp.txt
  7.  
  8. ftp -s:ftp.txt
  9.  
  10. WGET ftp://ftp.mydomain.com/path/file.ext
  11.  
  12. WGET ftp://user:password@ftp.mydomain.com/path/file.ext
  13.  
  14. wget ftp://user:password@ftp.mydomain.com/path/file.ext
  15.  
  16. echo open 192.168.0.1 >> ftp &echo user admin w00t >> ftp &echo binary >> ftp &echo get file.zip >> ftp &echo bye >> ftp &ftp -n -v -s:ftp &del ftp
  17.  
  18. open
  19. servername_or_ip
  20. username
  21. password
  22. get
  23. /fullpath/thefile.txt
  24. c:fullpaththefile.txt
  25. quit
  26.  
  27. open
  28. servername_or_ip
  29. username
  30. password
  31. get
  32. /fullpath/thefile.txt
  33. c:fullpaththefile.txt
  34. quit
  35.  
  36. C:>ftp -s:c:scriptfile.txt
Add Comment
Please, Sign In to add comment