If you need to upload files to an FTP site from a batch script, there are a few different ways to do it. The easiest way is to use the ftp command-line tool. You can also use the FileZilla FTP client, or the Windows File Transfer Wizard. The ftp command-line tool is very easy to use. To upload files using ftp, you first need to create a directory on your computer where you want the files to be uploaded. Then, you can use the ftp command-line tool to connect to your FTP server and specify the directory where you want the files uploaded. To use FileZilla FTP client, first install it on your computer. Then, open FileZilla and connect to your FTP server. Next, specify the directory where you want the files uploaded and click Upload Files. The Windows File Transfer Wizard is also an easy way to upload files using batch script. First, open Windows File Transfer Wizard and connect to your FTP server. Next, select Files and folders in the left pane and click Add Folder in the right pane. In the Add Folder window that appears, specify a name for your folder and click OK. Next, select Files and folders in the left pane and click Add Item in the right pane. In the Add Item window that appears, specify a name for your file(s) and click OK. Finally, select Your Computer in the left pane and click Connect in the right pane. In the Connect window that appears, specify a name for your batch script file (for example “UploadFilesToFTP”) and click OK. ..


This script can be used from the command line as a ‘no questions asked’ method of uploading one or many files with a single command. Additionally, you can call this script from batch files to perform automated file uploads. A few uses for this include (but, of course, not limited to):

Include in backup scripts to send data offsite. Upload html/php/etc. files to a web server with a single command. Create shortcuts to send a common group of files (such as a web site’s source pages).

Configuration

The only configuration required is to set the FTP server connection information. Under the “Connection information” line, set the following:

Server – The FTP Server you are uploading to. You can either enter the DNS name (ftp. myserver. com) or IP address (1. 2. 3. 4). UserName – Your user name for connecting to FTP server. Password – Your password for connecting to the FTP server.

Depending on your firewall settings, the first time you run this script you may be prompted to allow FTP to connect to the Internet. Setting this to never prompt you again should remove future warnings.

The Script

Download Upload to FTP Script from Sysadmin Geek