>but I can't maintance a connection in the whole day !
>so I need to connect it and sent the data by batch! ( use as demanding )
>so is it possible of doing this by VPN ?
If you've set up RAS (or a VPN) to make a connection by a dial-up connection, then trying to reference the remote resource will trigger a connection to the WAN; all VFP needs to do is request a connection using something like WNetAddConnection2() and assuming that Windows knows how to connect to the referenced address, VFP is finished - it doesn't have to handle making a dial-up connection or routing through a LAN - it passes an address to Windows, and Windows decides what needs to be done to make the connection.
If you want to do something other than provide basic file access across a network, then VFP might need to get involved; it's RAS, with or without VPN, that manages the connection. You can use something like PCAnywhere if RAS is too confusing.
>How Viusal foxpro can call the window to make a connection to the internet ?