Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FTP/SMPT/POP3/TCPIP Classes
Message
De
21/11/1999 20:26:41
Porter Hart
Raytheon Systems Company
El Segundo, Californie, États-Unis
 
 
À
06/11/1999 15:02:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00288077
Message ID:
00293766
Vues:
21
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
Fil
Voir

Click here to load this message in the networking platform