i just tried having a go at this but ran out of time
essentially i’m using ShellExecute with c:\windows\system32\ftp.exe
if you use the command line parameters
“ftp.exe -s:ftpcommands.txt hostname > results.txt”
then it’ll run a set of ftp commands from the ftpcommands.txt file and output the results into results.txt
an example ftpcommands.txt file would be:
||(username)
(password)
cd (ftppath)
dir
quit||
you then need to load the results.txt file in and comb through the string.
remember to make sure to be careful with shellexecute as it can be a security risk, but as long as you’re always running the same command it should be ok (i.e. the user cant change the commandline arguments, or the commands file)
It would be good if we can get the stdout of a ShellExecute as a pin on its output