Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP/SMPT/POP3/TCPIP Classes
Message
 
 
To
21/11/1999 20:26:41
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00288077
Message ID:
00293775
Views:
26
Porter,

The FTP program that ships with Windows will take a file that contains all of the ftp commands that you want to run.

>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!
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform