使用Windows batch傳送檔案至ftp

  • 1132
  • 0

摘要:使用Windows batch傳送檔案至ftp

echo [ftp帳號]>upload.txt
echo [ftp密碼]>>upload.txt
echo bin>>upload.txt
::指定二進位模式
echo cd [要傳送之ftp目錄]>>upload.txt
echo put [檔名]>>upload.txt
echo bye>>upload.txt
ftp -s:upload.txt [ftp ip]
echo 檔案傳送完成
pause

 

--

不斷學習,精進自我

Herbert Fang