Showing posts with label offecho. Show all posts
Showing posts with label offecho. Show all posts

Wednesday, 3 February 2016

How to Automate FTP TransfersIn Feburary 2016 03,

In Feburary 2016 03,
Click 'Start,' type 'notepad' and press 'Enter.' You will write your batch script here.
Type the following code, as an example, to create an automatic upload script:@echo offecho user USER > ftpcmd.datecho PASSWORD>> ftpcmd.datecho bin>> ftpcmd.datecho put %1>> ftpcmd.datecho quit>> ftpcmd.datftp -n -s:ftpcmd.dat FTPSITE.COMdel ftpcmd.dat
Replace 'USER,' 'PASSWORD' and 'FTPSITE' with the relevant FTP server details you have. If you want to create an automation script that uploads to multiple servers then repeat the code, minus the '@echo off', directly below the existing script.
Click 'File,' then 'Save As.' Browse to the Windows directory. Click the 'File type' menu and choose 'All Files.' Title the file 'upload.bat' and click 'Save.'
Click 'Start,' then type 'cmd' and press 'Enter.' Type 'upload file.txt' and replace 'file.txt' with the location of, and the file name of, the file you wish to upload. This will now be uploaded to the FTP server.
In Feburary 2016 03,