Forum Discussion
bommareddy
Contributor
Yes. The file is located in FTP(File transfer protocol).
So how can I establish a connection from script to read and write in a text file which is located in FTP?
Regards,
BommaReddy
So how can I establish a connection from script to read and write in a text file which is located in FTP?
Regards,
BommaReddy
HKosova
8 years agoSmartBear Alumni (Retired)
bommareddy wrote:
The file is located in FTP(File transfer protocol).
So how can I establish a connection from script to read and write in a text file which is located in FTP?
You'll need to download the file from FTP to the local computer, then read/write the file (e.g. using the aqFile object), then upload the file back to FTP.
There are several ways to work with FTP:
- Some customers use the free WinSCP tool. It has a command-line interface), a COM object, and a .NET assembly (can be called via CLR Bridge).
- Windows also has the built-in ftp command-line tool. Check the example here: https://tinyapps.org/docs/ftp.html
- .NET class System.Net.FtpWebRequest can be used via CLR Bridge.
- COM object ChilkatFTP (free). Check the example here: http://www.robvanderwoude.com/vbstech_internet_ftp.php
Hope this helps!
Related Content
- 7 years agoAdagio
- 4 years agojshao
- 3 years agoUConnAnnMarie
Recent Discussions
- 14 hours agoSvetaG