General information
Category:
Coding, syntax & commands
@echo off
echo open [IPADDRESS-FTP]>>script.txt
echo [username]>>script.txt
echo [password]>>script.txt
echo cd HO>>script.txt
echo pwd>>script.txt
echo type ascii>>script.txt
echo hash>>script.txt
echo ls>>script.txt
echo bye>>script.txt
ftp -s:script.txt
GOTO EXIT
:EXIT
----
as far as encapsulating an ftp session - i'm sorry - thats not what you were asking originally .
Please note the command line change I made above ...
THERE ARE MANY ways to use ftp in VFP - all centered around encapsulating a control .. There are some good examples with wwIP stuff - take a look there and let me know what you think.
I personally like Mabry's toolset a lot .
hth - mondo regards [Will]
>Hi William,
>
>If all possible, I would rather send the file via VFP8.0 and have a program do it- Much cleaner. But, currently I have not had much experience doing that and I'm using a program written in '99 and all is well except that the client needs the file sent in ascii not Binary.
>
>The programs errors out if I use the binary parameter.
>So, if you know where I can get a working FTP for VFP, or some program that uses the WinInet dll, that would be great.
>(i.e.)
> IF !sz_ftp.PutFtpFile("xsjflcp2.txt", "xsjflcp5.txt")
> ?sz_ftp.GetErrorCode(.T.)
> ENDIF
>
>The put class was:
>fResult = FtpPutFile(THIS.nConnect_Handle, @lcLocalFile, @lcRemoteFile, ;
> FTP_TRANSFER_TYPE_BINARY, 0)
>
>Errors on this:
>fResult = FtpPutFile(THIS.nConnect_Handle, @lcLocalFile, @lcRemoteFile, ;
> FTP_TRANSFER_TYPE_ASCII, 0)
>
>
>Any help would be greatly appreciated.
>
>Craig
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only