Please note that this is a Hosted~FTP~ resource, scripting support is available to our Enterprise level customers.
WinSCP is a power FTP, FTPS, SFTP client that offers a scripting interface allowing users to run a command from a file. Please note: You need to run note pad as administrator when setting up your script. To setup WinSCP automated scripting, follow the steps below:
In the site manager, select what protocol you want to use and input your login credentials for your Hosted FTP account.
Click save and then change the site name to something you will remember. For the sake of this article, we will call it “hostedftp” (optional). Check Save password and click on the ok button. Then log in to make sure all the information entered in the site manager is correct.
Create your Bash script:
Locate the Notepad program. Right-click the program and select Run as administrator.
Insert the following script: winscp.exe /console /script=script.txt
You need to save the file in the C:\Program Files (x86)\WinSCP. Save the file using the following settings: Save as type: All Files and Filename: script.BAT
Once again, locate the Notepad program. Right-click the program and select Run as administrator. Insert the following script but using your own credentials where necessary:
# Connect to the server
#print Connection successful
echo Connection Successful!___________