02-10-2010, 08:37 PM
You can create a text file with the ftp commands in order of execution...
http://support.microsoft.com/kb/96269
myftpcommands.txt
Then you can call a shell execute command in QTP.
http://msdn.microsoft.com/en-us/library/...S.85).aspx
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