Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can we copy the text file to ftp server?
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
How can we copy the text file to ftp server?
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
You can create a text file with the ftp commands in order of execution...
http://support.microsoft.com/kb/96269

myftpcommands.txt
Code:
open ftp.mysite.com
user
password
hash
bin
put file1.txt
quit

Then you can call a shell execute command in QTP.
http://msdn.microsoft.com/en-us/library/...S.85).aspx
Code:
dim objShell
set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "ftp.exe", "myftpcommands.txt", "", "open", 1
set objShell = nothing
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Capture All text from webpage and copy it... mpatra 3 5,225 07-25-2018, 05:33 PM
Last Post: vimlesh
  Copy folders from ALM squadri 0 1,812 08-16-2016, 06:23 PM
Last Post: squadri
  How to read a text file using FSO from bottom to up order?? vallalarasu.p 0 2,502 10-13-2014, 11:14 AM
Last Post: vallalarasu.p
  how to create text file swayam 1 2,847 05-29-2014, 01:25 PM
Last Post: basanth27
  Retrieving Text from a PDF file smartkarthi 2 4,687 08-22-2013, 11:44 AM
Last Post: smartkarthi

Forum Jump:


Users browsing this thread: 2 Guest(s)