Skip to content

Instantly share code, notes, and snippets.

@fushenghua
Last active August 2, 2019 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fushenghua/399380f56c682d9c527356291d545c7d to your computer and use it in GitHub Desktop.
Save fushenghua/399380f56c682d9c527356291d545c7d to your computer and use it in GitHub Desktop.
rem 指定FTP用户(这就是匿名)
set ftpUser=anonymous
rem 指定FTP密码(任意
set ftpPass=123
rem 指定FTP服务器地址
set ftpIp=192.168.3.227
echo open %ftpIp% >> ftp.txt
echo %ftpUser%>> ftp.txt
echo %ftpPass%>> ftp.txt
echo cd %dateStr2% >> ftp.txt
echo put %dateStr%\%%a >> ftp.txt
echo bye >> ftp.txt
echo ftp bye >> ftp.txt
ftp -s:ftp.txt
del ftp.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment