Recently I was working in a static Web Site and at the time I need to upload it to the server, I realize there were several files and directories to upload. As I’ve never been a big fan of FTP programs other than the command line provided in each OS, and, instead of searching if there were already a public solution, I started thinking in an automation script to upload the files. The basic idea of an automation script is to read the contents of a directory, create a commands script for FTP and then execute the generated script. But it also needs to be recursive within internal directories. As I was working with Windows, the script I created is for MS DOS The way to call it is: uploadfiles <Root directory to upload > Where the given root directory is where the desired files to upload are stored. Taking a little walkthrough of the script, it works like these: 1. Set working variables and defaults. set user= < set FTP User> set pass= < FTP Password > set site= < site ...
Comments