Down the rabbit hole. I've tried many things including Craig Boyd's
VFPConnection, FileZilla command line arguments, and others. It seems
as if FTP Windows built in "stuff" is either broken or locked down. I
think this is another example of Windows misguided security mechanisms
causing more problems than they resolve.
SOLUTION: WinSCP to the rescue. Download here:
http://winscp.net/eng/download.php
Basically, I'm going to create a script file for WinSCP to use. I'll
then create (or have static) a BAT file that calls the script.
========= VFP CODE ==============================
? TIME(), REPLICATE("=", 50)
sHost = "mydomain" && "<<ip address or domain name. Example:
mydomain.com>>"
sUser= "myusername" && "<<Login Name>>"
sPassword = "mysupersecretpassword" && "<<Password>>"
sSourceDir = "upload_directory\"
sSourceFiles = "*.*" && Wildcards okay.
sTargetDir = "./temp" && Target directory.
TEXT TO sScript TEXTMERGE NOSHOW
option batch abort
option confirm off
open ftp://<<sUser>>:<<sPassword>>@<<sHost>>
CD <<sTargetDir>>
put <<FULLPATH(sSourceDir)>><<sSourceFiles>>
EXIT
ENDTEXT
=STRTOFILE( sScript, "ftpcmd.txt" )
&& You can skip this step of the batch file creation if the batch file
doesn't ever change and it already exists on the drive.
TEXT TO sScript TEXTMERGE NOSHOW
"c:\Program Files (x86)\WinSCP\winscp.com" /script=<<FULLPATH(ftpcmd.txt)>>
ENDTEXT
=STRTOFILE( sScript, "ftpcmd.bat" )
&& Here's where the magic happens.
RUN ftpcmd.bat
? TIME(), REPLICATE("-", 50)
========= /VFP CODE ==============================
I hope this helps people out. Thank you to everyone that has contributed.
-Kevin
On 10/15/2014 01:31 PM, Ted Roche wrote:
Of course, the better solution is to use _anything_ else.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.