Forum Discussion
bommareddy
8 years agoContributor
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
- HKosova8 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!
- 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).
- AlexKaras8 years agoChampion Level 3
Hi,
> The file is located in FTP
This thread might help: https://community.smartbear.com/t5/TestComplete-General-Discussions/Uploading-file-to-an-FTP-server/td-p/81996
- shankar_r8 years agoCommunity Hero
I have not worked with those stuffs but i guess you can use below line to connect the network drive
net use "\\NETWORKPATH\DRIVENAME" /user:"ROUTERNAME" "PW"
But I'm not sure how it is going to help you :(
Related Content
- 7 years agoAdagio
- 4 years agojshao
- 3 years agoUConnAnnMarie
Recent Discussions
- 13 hours agovladd1