How to batch upload a file with specified attributes to FTP
This article mainly introduces how batch processing uploads files with specified attributes to FTP, which has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.
@ echo offrem specify FTP username set ftpUser=FTPUSERNAMErem specify FTP password set ftpPass=FTPPASSWORDrem specify FTP server address set ftpIP=192.168.0.2 setting local folder directory set SrcFolder=C:/testdir / b / aa-d > nul 2 > nulif% errorlevel% equ 1 (echo No archiving file to FTP pause goto: eof) set FtpFile=%temp%/TempFTP.txt > "% FtpFile%" echo,%ftpUser% > > "% FtpFile%" echo % ftpPass% > > "% FtpFile%" echo binfor / f "tokens=*"% an in ('dir / b / aa-d') do (> > "% FtpFile%" echo put "% SrcFolder%/%%a") > >% FtpFile% "echo byestart ftp-v-I-s:"% FtpFile% "% ftpIP%ping-n 10 127.1 > nulattrib-a *. * Thank you for reading this article carefully I hope the article "how to upload files with specified attributes to FTP by batch processing" shared by the editor is helpful to everyone. At the same time, I also hope that you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!