This may not apply to your situation but I used it several times in the FPD/FPW26 era:
Find a DOS command line FTP program. If you can find one that has a scripting language, you may wish to use that. Otherwise, read on.
Use the FTP program from the command line & note _exactly_ what entries you make to accomplish your goal. Keep is simple.
Make a text file which contains the same keystrokes you just used.
Use input redirection to pump your keystroke file into the FTP program:
C:\> FTP < MyKeys.txt
Play with your keystroke file until it works.
Now run the FTP program from VFP:
RUN FTP < MyKeys.txt
Once you get that working, the fun begins. Use VFP to create your keystroke file(s) on the fly. You can also redirect the FTP output to a file & fread() the resulting file to determine what actually happened.
In general, simple scripts work best. Use several scripts to execute a complex task.
If you manage to capture the result code from the FTP program, tell me how you did it!
Hope this helps,
-Porter
----- yours follows -----
>I am trying to develop a FTP application in VFP. I have tried using commercial ftp activex controls but I need something (loke VFP libraries/classes) which will allow me to do FTP without any activex control whatsoever.
>
>Will appreciate any help forthcoming in this regard.
>
>
>thanks a ton
>
>Sanjay
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement