Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Uploading file to the FTP server using InternetWriteFile
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
Retrieving list of available disk drives
Using the RestartDialog function -- restarting Windows
Using vendor-neutral SQL constructs
Connecting a local device to a network resource
Enumerating Performance Counters
How to download this reference`s archive through WinInet functions using InternetOpenUrl
How to remove a directory that is not empty
Minimizing all running applications
Obtaining addresses for the adapters on the local computer (Win XP/2003/Vista)
Setting properties of the window: caption and user-defined value
Copying files as a transacted operation (Vista)
GDI+: creating scaled copy of image file
Printing text on the client area of the main VFP window
Reading VFP settings from the Windows Registry
Verifying a file using the Authenticode policy provider
Enumerating network interfaces on the local computer
Reading parameters of streams in AVI file
Retrieving information about the main VFP window
Changing file attributes
Get the power status of your laptop computer
Loading a string resource from an executable file
Obtaining names of local and global groups for current user (WinNT/XP/2K)
Uploading file to the FTP server using InternetWriteFile

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:
Programming File Transfer Protocol in Visual FoxPro
  Members area. Log in to view this example.
  User name:
  Forgot your password?
  Sign up for
the Membership

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
3352 bytes  
Created: 2001-07-24 12:00:00  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 164  
Listed functions:
Printer friendly API declarations
My comment:
Unlike the FtpPutFile using this function you have control through the whole uploading process. Of course, it depends on how many chunks you split the source file to.

Between chunks you can display the progress of uploading. As well you can test pressed keys or other events and stop the uploading.

#kwd: sln_ftp.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
19 sec.Function: 'NetJoinDomain'
Function group: 'Windows Networking'
38 sec.Function: 'NetScheduleJobAdd'
Function group: 'Network Management'
56 sec.
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
1.25 min.Function: 'WNetAddConnection2'
Function group: 'Windows Networking'
1.57 min.Function: 'NetGroupEnum'
Function group: 'Network Management'
1.85 min.Function: 'GetVolumeInformation'
Function group: 'File System'
2.13 min.Function: 'GetConsoleScreenBufferInfo'
2.7 min.Example: 'Using Common Controls: the Header Control'
2.98 min.Examples
3.83 min.Function: 'NetUserEnum'
Function group: 'Network Management'
Advertise here!