windows-ftp-upload.txt 2.1 KB

123456789101112131415161718192021222324252627
  1. AUTOMATIC FTP UPLOAD SCRIPT FOR WINDOWS
  2. -----------------------------
  3. Change the paths and such so they make sense with your config and have fun all
  4. you poor m$ users. ;) (NOTE: You may need to change the last line to 'ftp
  5. -s:%f0' on some old NT systems.) Basically just put all your ftp commands
  6. between the 'goto skip' and ':skip', and put any commands you want executed
  7. BEFORE IT (like pisg) at the end. The batch file will ignore the ftp stuff
  8. because of the goto, and the ftp script will ignore the one command it doesnt
  9. recognize(goto) with a small complaint and no error.
  10. -----------------------pisg.bat----------------------------
  11. goto skip
  12. OPEN your.ftp.server.com
  13. username
  14. password
  15. CD /yourdir
  16. PUT "C:\Program Files\WinBot\Logs\pisg-0.28\index.html"
  17. QUIT
  18. :skip
  19. cd "C:\Program Files\WinBot\Logs\pisg-0.28\"
  20. perl "C:\Program Files\WinBot\Logs\pisg-0.28\pisg"
  21. ftp -s:%0